/*! Lynum · Copyright (C) 2026 SalesLair LLC · A SalesLair project.
 * Licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only). See LICENSE.txt.
 * Provided as is, without warranty. "Lynum" and "SalesLair" are reserved names of SalesLair LLC. */
/* Lynum — orange, blue, purple; glassy, modern, calm */
:root{color-scheme:light dark;
--o:#ff7a1a;--b:#2f6bff;--p:#8b5cf6;
--grad:linear-gradient(120deg,var(--o),var(--p) 55%,var(--b));
--bg:light-dark(#f5f3ff,#0d0a1c);--bg2:light-dark(#ffffff,#151029);
--ink:light-dark(#17122b,#efeaff);--mute:light-dark(#625b7c,#a59dc4);
--line:light-dark(#e3def5,#2a2347);--glass:light-dark(rgba(255,255,255,.78),rgba(26,20,50,.72));
--card:light-dark(#ffffff,#1b1535);--field:light-dark(#faf9ff,#120e26);
--r:18px;--shadow:0 12px 40px light-dark(rgba(60,30,140,.12),rgba(0,0,0,.45))}
*{box-sizing:border-box;min-width:0}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Manrope,system-ui,sans-serif;overflow-x:clip;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:
 radial-gradient(40vw 40vw at 0% 0%,rgba(255,122,26,.16),transparent 60%),
 radial-gradient(45vw 45vw at 100% 10%,rgba(139,92,246,.18),transparent 60%),
 radial-gradient(50vw 40vw at 60% 100%,rgba(47,107,255,.16),transparent 60%)}
h1,h2,h3{font-family:Sora,system-ui,sans-serif;letter-spacing:-.02em;margin:0 0 6px;line-height:1.1;text-wrap:balance}
h1{font-size:clamp(30px,4.6vw,48px);font-weight:800}h2{font-size:clamp(22px,3vw,28px);font-weight:700}h3{font-size:17px;font-weight:700}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--p);outline-offset:2px}
.hide{display:none!important}
.mute{color:var(--mute)}.small{font-size:14px}
.grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.glass{background:var(--glass);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);border:1px solid var(--line);box-shadow:var(--shadow)}
.btn{min-height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .15s,box-shadow .15s}
.btn:hover{transform:translateY(-1px)}
.btn.pri{background:var(--grad);border:0;color:#fff;box-shadow:0 8px 24px rgba(139,92,246,.35)}
.btn.ghost{background:transparent;border-color:transparent}
.btn.warn{color:#e5484d;border-color:light-dark(#f3c2c4,#5a2730)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.wide{width:100%}
.link{background:none;border:0;color:var(--b);font-weight:600;padding:10px 0;min-height:44px}
label{display:block;font-size:14px;font-weight:700;margin-bottom:12px}
label input,label select,label textarea,.search{display:block;width:100%;margin-top:6px;min-height:46px;border-radius:12px;border:1px solid var(--line);background:var(--field);padding:10px 14px;font-size:16px;font-weight:500}
label input:focus,label select:focus,label textarea:focus,.search:focus{border-color:var(--p);outline:none;box-shadow:0 0 0 4px rgba(139,92,246,.18)}
label.chk{display:flex;align-items:center;gap:10px}label.chk input{width:22px;min-height:22px;margin:0;accent-color:var(--p)}
textarea{resize:vertical}
.g2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:0 14px}
.acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.msg{min-height:22px;font-size:14px;margin:4px 0 10px}.msg.err{color:#e5484d}.msg.ok{color:#18a058}
#demoBar{background:var(--grad);color:#fff;text-align:center;font-size:14px;font-weight:600;padding:8px 12px}

/* brand */
.brand{display:inline-flex;align-items:center;gap:10px;font:800 20px Sora,sans-serif;color:var(--ink);text-decoration:none;letter-spacing:-.02em}
.brand.big{font-size:24px;margin-bottom:28px}
.logo{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#ff6a00 0%,#ff8a2b 48%,#a35cf0 80%,#3b6dff 100%);position:relative;flex:none;box-shadow:0 6px 18px rgba(255,122,26,.35)}
.logo::after{content:"";position:absolute;inset:4px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M24 9v18'/%3E%3Cpath d='M24 19l-9-7M24 19l9-7'/%3E%3Cpath d='M9 27h30' stroke-width='2.2'/%3E%3Cpath d='M24 27c0 5-4 8-9 11M24 27c0 5 4 8 9 11M24 27v12'/%3E%3Cg fill='white' stroke='none'%3E%3Ccircle cx='24' cy='8' r='3.6'/%3E%3Ccircle cx='14' cy='11' r='3.6'/%3E%3Ccircle cx='34' cy='11' r='3.6'/%3E%3C/g%3E%3C/svg%3E")}

/* auth */
#auth{min-height:100dvh;display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(24px,5vw,72px);align-items:center;padding:clamp(24px,5vw,72px);max-width:1240px;margin:0 auto}
.hero h1{font-size:clamp(36px,5.5vw,64px);line-height:1.02;margin-bottom:14px}
.lede{font-size:18px;color:var(--mute);max-width:520px;margin:0 0 20px}
.heroArt{width:100%;max-width:520px;height:auto;display:block;margin:8px 0 18px}
.heroArt .nodes rect{stroke-width:2}
.heroArt .n0{fill:url(#hg)}.heroArt .n1{fill:var(--card);stroke:var(--b)}.heroArt .n2{fill:var(--card);stroke:var(--p)}.heroArt .n3{fill:var(--card);stroke:var(--o)}
.heroArt .links path{stroke-dasharray:900;stroke-dashoffset:900;animation:draw 2.2s .2s ease forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.feat{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;font-weight:600;font-size:15px}
.feat li::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--grad);margin-right:10px;vertical-align:middle}
.authCard{border-radius:24px;padding:clamp(22px,3vw,36px);width:100%;max-width:460px;justify-self:center}
.seg{display:grid;grid-template-columns:1fr 1fr;background:var(--field);border:1px solid var(--line);border-radius:14px;padding:4px;margin-bottom:22px}
.seg button{border:0;background:transparent;min-height:42px;border-radius:10px;font-weight:700;color:var(--mute)}
.seg button[aria-selected=true]{background:var(--card);color:var(--ink);box-shadow:0 2px 10px rgba(0,0,0,.08)}
@media(max-width:860px){#auth{grid-template-columns:1fr;padding-top:28px}.heroArt{max-width:360px}.feat{display:none}.hero h1{font-size:clamp(32px,9vw,44px)}}

/* app bar */
.bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;padding:10px max(3vw,14px);background:var(--glass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.crumb{flex:1;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crumb button{background:none;border:0;color:var(--mute);font-weight:700;padding:8px 4px;min-height:44px}
.me{display:flex;align-items:center;gap:8px}
@media(max-width:640px){#meEmail,.bname{display:none}}
.pad{padding:clamp(20px,4vw,44px) max(4vw,14px);max-width:1240px;margin:0 auto}
.narrow{max-width:760px}
.phead{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:22px}

/* projects */
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:16px}
.tcard{position:relative;text-align:start;border-radius:var(--r);padding:22px;border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow);overflow:hidden;min-height:170px;display:flex;flex-direction:column;gap:6px;transition:transform .18s}
.tcard:hover{transform:translateY(-3px)}
.tcard::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--grad)}
.tcard h3{font-size:20px}.tcard .meta{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:14px;color:var(--mute)}
.pill{display:inline-block;font-size:13px;font-weight:700;padding:3px 10px;border-radius:999px;background:light-dark(#efe9ff,#2a2150);color:var(--p)}
.pill.owner{background:light-dark(#fff0e4,#3a2414);color:var(--o)}.pill.editor{background:light-dark(#e7eeff,#17234a);color:var(--b)}
.newcard{border:2px dashed var(--line);background:transparent;box-shadow:none;align-items:center;justify-content:center;font-weight:700;color:var(--mute)}
.newcard::before{display:none}

/* tabs */
.tabs{display:flex;gap:4px;align-items:center;padding:8px max(3vw,14px);border-bottom:1px solid var(--line);overflow-x:auto;background:var(--bg2)}
.tabs button{border:0;background:transparent;min-height:42px;padding:0 16px;border-radius:999px;font-weight:700;color:var(--mute);flex:none}
.tabs button[aria-selected=true]{background:var(--grad);color:#fff}
.role{margin-left:auto;flex:none}
.view{display:none}.view.on{display:block}

/* diagram */
#stage{position:relative;height:calc(100dvh - 124px);min-height:480px;overflow:hidden;touch-action:none;
 background:radial-gradient(circle,light-dark(#d9d2f2,#2a2347) 1.2px,transparent 1.4px) 0 0/26px 26px}
#canvas{position:absolute;inset:0;width:100%;height:100%;cursor:grab;user-select:none;-webkit-user-select:none}
#canvas.drag{cursor:grabbing}
.card rect.bx{fill:var(--card);stroke-width:2;filter:url(#sh)}
.card.m rect.bx{stroke:var(--b)}.card.f rect.bx{stroke:var(--p)}.card.x rect.bx{stroke:var(--o)}
.card:hover rect.bx{stroke-width:3}
.card.focus rect.bx{fill:url(#fg);stroke:none}
.card .n{font:700 15px Manrope,sans-serif;fill:var(--ink)}.card .y{font:500 13px Manrope,sans-serif;fill:var(--mute)}
.card.focus .n,.card.focus .y{fill:#fff}
.card .ini{font:800 16px Sora,sans-serif;fill:#fff;text-anchor:middle}
.card .more{font:800 13px Sora,sans-serif;fill:var(--o)}.card.focus .more{fill:#fff}
.ln{fill:none;stroke:light-dark(#b9addf,#4c3f80);stroke-width:2}
.sp{stroke:var(--o);stroke-width:3}.sp.end{stroke:var(--mute);stroke-dasharray:5 5;stroke-width:2}
.myr{font:800 13px Sora,sans-serif;fill:var(--o);text-anchor:middle}
.gen{font:700 13px Manrope,sans-serif;fill:var(--mute)}
.dock{position:absolute;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px;border-radius:16px;z-index:3}
.dock button{min-width:44px;min-height:44px;border:0;border-radius:11px;background:transparent;font-weight:800;font-size:16px;padding:0 10px}
.dock button:hover{background:var(--field)}
.dock input{width:clamp(80px,18vw,180px);accent-color:var(--p)}
#zPct{font:700 13px Sora,sans-serif;min-width:46px;text-align:center;color:var(--mute)}
.depth{position:absolute;top:12px;left:12px;display:flex;gap:10px;padding:8px 12px;border-radius:14px;z-index:3}
.depth label{margin:0;font-size:13px;display:flex;align-items:center;gap:8px}
.depth select{margin:0;min-height:38px;width:auto;padding:4px 8px}
.legend{position:absolute;top:12px;right:12px;display:flex;gap:12px;padding:8px 12px;border-radius:14px;font-size:13px;font-weight:600;z-index:3;flex-wrap:wrap}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;border:2px solid}
.lm{border-color:var(--b)!important}.lf{border-color:var(--p)!important}.lx{border-color:var(--o)!important}
@media(max-width:700px){.legend{display:none}.dock #zRange{display:none}.depth{left:8px;right:8px;justify-content:center}}
.emptyTree{position:absolute;inset:0;margin:auto;width:min(420px,90%);height:max-content;padding:28px;border-radius:22px;text-align:center;z-index:4}

/* people */
.search{margin:0 0 18px}
.stats{display:flex;gap:clamp(18px,4vw,40px);flex-wrap:wrap;margin:4px 0 22px}
.stats b{display:block;font:800 34px/1 Sora,sans-serif}
.stats div:nth-child(1) b{color:var(--o)}.stats div:nth-child(2) b{color:var(--p)}.stats div:nth-child(3) b{color:var(--b)}
.stats span{font-size:14px;color:var(--mute)}
.sect{margin:4px 0 10px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:6px 14px;min-height:42px;font-weight:600}
.chips button[aria-pressed=true]{background:var(--grad);color:#fff;border-color:transparent}
.plist{list-style:none;padding:0;margin:18px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:10px}
.plist button{width:100%;display:flex;gap:12px;align-items:center;text-align:start;border:1px solid var(--line);background:var(--card);border-radius:16px;padding:12px 14px;min-height:64px}
.plist small{color:var(--mute)}
.avs{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;display:grid;place-items:center;color:#fff;font:800 15px Sora,sans-serif}
.avs.m{background:var(--b)}.avs.f{background:var(--p)}.avs.x{background:var(--o)}

/* related + members */
.path{margin-top:16px;padding:18px;border-radius:16px;border:1px solid var(--line);background:var(--card)}
.path ol{margin:8px 0 0;padding-inline-start:22px}
.card.glass,.glass.card{border-radius:var(--r);padding:20px;margin:18px 0}
.mlist{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px}
.mlist li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.mlist .who{flex:1;font-weight:600;overflow-wrap:anywhere}
.mlist select{min-height:40px;border-radius:10px;border:1px solid var(--line);background:var(--field);padding:4px 8px}

/* sheet */
#sheet{position:fixed;inset:auto 0 0 0;max-height:82dvh;overflow:auto;background:var(--bg2);border-radius:24px 24px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.3);
 padding:0 max(4vw,18px) calc(28px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .28s cubic-bezier(.2,.8,.2,1);z-index:30}
#sheet.open{transform:none}
#sheet .cover{height:8px;margin:0 calc(-1*max(4vw,18px)) 18px;background:var(--grad)}
@media(min-width:960px){#sheet{inset:64px 0 0 auto;width:420px;max-height:none;border-radius:24px 0 0 0;transform:translateX(105%)}}
.shead{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.av{width:88px;height:88px;border-radius:24px;object-fit:cover;flex:none;box-shadow:0 0 0 3px var(--bg2),0 0 0 5px var(--p);cursor:zoom-in}
.facts{margin:14px 0;display:grid;gap:4px}
.rel{margin:18px 0}.rel>h3{font-size:13px;color:var(--mute);margin:0 0 8px;font-weight:700;letter-spacing:.02em}
.bio{white-space:pre-wrap;font-size:17px;line-height:1.65;margin:0}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin:0 0 10px}
.gal figure{margin:0;position:relative}.gal img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block;cursor:zoom-in}
.gal figure button{position:absolute;inset:auto 4px 4px auto;min-height:30px;border-radius:8px;border:0;background:#000b;color:#fff;font-size:13px;padding:0 8px}
.mar{display:block;font-size:14px;color:var(--mute);margin:6px 0 12px 4px}

/* modals */
.modal{position:fixed;inset:0;background:rgba(10,6,25,.55);display:none;align-items:flex-start;justify-content:center;padding:5vh 12px;overflow:auto;z-index:40}
.modal.open{display:flex}
.panel{border-radius:24px;padding:24px;width:min(680px,100%);background:var(--bg2)}
.panel h3{margin:10px 0}
#lightbox{position:fixed;inset:0;background:rgba(5,3,15,.92);display:none;align-items:center;justify-content:center;z-index:50;padding:16px}
#lightbox.open{display:flex}#lightbox img{max-width:100%;max-height:92dvh;border-radius:12px}
#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,200%);visibility:hidden;background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:14px;font-weight:600;transition:transform .22s;z-index:60;max-width:90vw}
#toast.on{transform:translate(-50%,0);visibility:visible}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}.heroArt .links path{stroke-dashoffset:0}}

/* personality & favorites */
details.about{margin:6px 0 14px;border:1px solid var(--line);border-radius:16px;padding:0 16px;background:var(--field)}
details.about[open]{padding-bottom:16px}
details.about summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;min-height:56px;font:700 16px Sora,sans-serif}
details.about summary::-webkit-details-marker{display:none}
details.about summary span:first-child::before{content:"+";display:inline-grid;place-items:center;width:26px;height:26px;margin-right:10px;border-radius:8px;background:var(--grad);color:#fff;font-size:16px}
details.about[open] summary span:first-child::before{content:"−"}
.crow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) 44px;gap:8px;align-items:end;margin-bottom:8px}
.crow label{margin:0}.crow button{min-height:46px}
@media(max-width:560px){.crow{grid-template-columns:minmax(0,1fr) 44px}.crow label:nth-child(2){grid-column:1/-1;grid-row:2}}
.facets{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));gap:8px}
.facet{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--card);position:relative;overflow:hidden}
.facet::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--c,var(--p))}
.facet b{display:block;font-size:13px;color:var(--mute);font-weight:700;margin-bottom:2px}
.facet p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.facet.wide{grid-column:1/-1}

/* pets */
.pets{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:10px}
.pet{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:16px;padding:12px;background:var(--card)}
.pet img,.pet .pav{width:64px;height:64px;border-radius:18px;object-fit:cover;flex:none;cursor:zoom-in}
.pet .pav{display:grid;place-items:center;background:var(--grad);color:#fff;font:800 22px Sora,sans-serif;cursor:default}
.pet h4{margin:0;font:700 16px Sora,sans-serif}
.pet .meta{font-size:14px;color:var(--mute)}
.pet .notes{margin:6px 0 0;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}
.pet .row{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.pet .row button{min-height:36px;padding:0 12px;font-size:14px}
.pet.gone{opacity:.92}.pet.gone h4::after{content:" · remembered";font:600 13px Manrope,sans-serif;color:var(--mute)}

/* places */
.sub{margin:8px 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--field)}
.sub h3{margin:0 0 2px}
.rrow{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,.8fr) minmax(0,.8fr) 44px;gap:8px;align-items:end;margin-bottom:8px}
.rrow label{margin:0}.rrow button{min-height:46px}
@media(max-width:560px){.rrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}.rrow label:first-child{grid-column:1/-1}}
.timeline{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--line)}
.timeline li{position:relative;padding:4px 0 10px}
.timeline li::before{content:"";position:absolute;left:-25px;top:10px;width:12px;height:12px;border-radius:50%;background:var(--grad)}
.timeline small{color:var(--mute);display:block}
.plgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px;margin-top:18px}
.bars{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.bars li button{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;text-align:start;border:1px solid var(--line);background:var(--card);border-radius:12px;padding:10px 12px;min-height:48px;position:relative;overflow:hidden}
.bars li button i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,rgba(255,122,26,.18),rgba(139,92,246,.18),rgba(47,107,255,.18));pointer-events:none}
.bars li button span,.bars li button b{position:relative}
.cout{margin:14px 0;padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--card)}

/* parent relationship lines */
.ln.birthln{stroke-dasharray:2 6;stroke-linecap:round;opacity:.75}
.ln.stepln{stroke-dasharray:8 6}
.legend .ll{display:inline-block;width:22px;height:0;border-top:2px solid light-dark(#b9addf,#4c3f80);vertical-align:middle;margin-right:6px}
.legend .ll.b{border-top-style:dotted}.legend .ll.s{border-top-style:dashed}
.prow{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) 44px;gap:8px;align-items:end;margin-bottom:8px}
.prow label{margin:0}.prow button{min-height:46px}
@media(max-width:560px){.prow{grid-template-columns:minmax(0,1fr) 44px}.prow label:nth-child(2){grid-column:1/-1;grid-row:2}}
.adopt{border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:var(--card);position:relative;overflow:hidden}
.adopt::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--grad)}

.hrow{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,.8fr) 44px;gap:8px;align-items:end;margin-bottom:8px}
.hrow label{margin:0}.hrow button{min-height:46px}
.grow{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:end;margin-bottom:8px}.grow label{margin:0}.grow button{min-height:46px}
.her{display:flex;flex-wrap:wrap;gap:8px}
.her span{display:inline-flex;gap:6px;align-items:center;padding:6px 14px;border-radius:999px;font-weight:700;background:light-dark(#f3efff,#241c45);border:1px solid var(--line)}
.her span b{font:800 13px Sora,sans-serif;color:var(--o)}

/* help, badges, tour, checklist, suggestions */
.helpbtn{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--card);font:800 17px Sora,sans-serif;margin-left:8px;color:var(--p)}
.role+.helpbtn{margin-left:8px}
.badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:var(--o);color:#fff;font:800 12px Sora,sans-serif}
#tour{position:fixed;inset:0;z-index:80}
.tour-hole{position:fixed;border-radius:18px;box-shadow:0 0 0 9999px rgba(10,6,25,.62);transition:all .3s cubic-bezier(.2,.8,.2,1);pointer-events:none;outline:3px solid rgba(255,255,255,.85)}
.tour-hole.none{width:0!important;height:0!important;left:50%!important;top:40%!important;outline:none}
.tour-card{position:fixed;width:min(380px,calc(100vw - 24px));border-radius:22px;padding:20px;background:var(--bg2);transition:top .3s,left .3s}
.tour-card h3{font-size:20px;margin:6px 0 8px}.tour-card p{margin:0 0 6px;color:var(--ink)}
.tour-dots{display:flex;gap:5px}.tour-dots i{width:18px;height:5px;border-radius:3px;background:var(--line)}.tour-dots i.on{background:var(--grad)}
.check{border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:var(--card);margin:16px 0}
.check .meter{height:8px;border-radius:4px;background:var(--line);overflow:hidden;margin:8px 0 10px}.check .meter i{display:block;height:100%;background:var(--grad)}
.check .chips button{min-height:38px;font-size:14px}
.sug .who{font-weight:500}.sug small{display:block;color:var(--mute)}
.sug.done{opacity:.6}

.joinb{border-radius:14px;padding:12px 14px;margin-bottom:16px;background:linear-gradient(120deg,rgba(255,122,26,.14),rgba(139,92,246,.14),rgba(47,107,255,.14));border:1px solid var(--line)}
#lkUrl{font:500 14px ui-monospace,Menlo,monospace}
.lk small{display:block;color:var(--mute)}.lk.off{opacity:.55}

/* profile video */
.vid{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#000}
.vid video{display:block;width:100%;max-height:60vh;background:#000}
.vidcap{padding:10px 14px;background:var(--card);border-top:1px solid var(--line)}
.vidcap small{color:var(--mute)}
.vidempty{border:2px dashed var(--line);border-radius:18px;padding:16px;text-align:center}
.vidprog{height:6px;border-radius:3px;background:var(--line);overflow:hidden;margin-top:8px}.vidprog i{display:block;height:100%;width:40%;background:var(--grad);animation:vp 1.2s ease-in-out infinite}
@keyframes vp{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
@media(max-width:860px){#auth.joining .heroArt,#auth.joining .lede{display:none}#auth.joining .hero h1{font-size:30px}}

/* ===== Extras ===== */
.xgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px}
.xcard{position:relative;display:flex;flex-direction:column;gap:6px;text-align:start;border:1px solid var(--line);background:var(--card);border-radius:18px;padding:16px 16px 14px;min-height:132px;box-shadow:var(--shadow);font:inherit;color:inherit}
.xcard b{font:700 16px Sora,sans-serif}.xcard span{color:var(--mute);font-size:14px;line-height:1.45}
.xcard.on{cursor:pointer;border-color:transparent;background:linear-gradient(var(--card),var(--card)) padding-box,var(--grad) border-box;border:2px solid transparent}
.xcard.on i{margin-top:auto;font-style:normal;font-weight:700;color:var(--p)}
.switch{margin:auto 0 0;display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:700}
.switch input{position:absolute;opacity:0;width:1px;height:1px}
.switch i{width:46px;height:28px;border-radius:999px;background:var(--line);position:relative;transition:background .2s;flex:none}
.switch i::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:transform .2s}
.switch input:checked+i{background:var(--grad)}.switch input:checked+i::after{transform:translateX(18px)}
.switch input:focus-visible+i{outline:3px solid var(--p);outline-offset:2px}.switch em{font-style:normal;font-size:14px;color:var(--mute)}
.todayb{position:absolute;top:66px;left:50%;transform:translateX(-50%);z-index:4;border-radius:999px;padding:10px 18px;font-weight:700;max-width:calc(100% - 24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;color:var(--ink)}
.todayb::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--o);margin-right:8px;vertical-align:middle}
@media(max-width:700px){.todayb{top:62px}}
.kidsbtn{width:auto;padding:0 14px;border-radius:999px;font-size:14px;color:var(--o)}
.occs{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.occ{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.occ .when b{display:block}.occ .when small{color:var(--mute)}
.occ.birthday{border-left:5px solid var(--o)}.occ.anniversary{border-left:5px solid var(--p)}.occ.remember{border-left:5px solid var(--b)}.occ.adoption,.occ.pet{border-left:5px solid var(--o)}
@media(max-width:520px){.occ{grid-template-columns:1fr auto}.occ .when{grid-column:1/-1}}
.qcard{border-radius:22px;padding:22px;background:var(--grad);color:#fff;margin-bottom:16px}.qcard small{opacity:.85;font-weight:700}.qcard h3{font-size:clamp(20px,3vw,28px);margin:6px 0 0;color:#fff}
blockquote{margin:10px 0;padding:12px 16px;border-left:4px solid var(--p);background:var(--card);border-radius:0 14px 14px 0;white-space:pre-wrap;overflow-wrap:anywhere}
blockquote small{display:block;margin-top:6px;color:var(--mute);font-size:13px;white-space:normal}
.poster{margin-top:16px;border:1px solid var(--line);border-radius:16px;overflow:auto;background:#fffdf9;max-height:70vh}.poster svg{display:block;max-width:100%;height:auto}
.agrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px;margin:10px 0}
.acard{display:flex;flex-direction:column;gap:4px;text-align:start;border:1px solid var(--line);background:var(--card);border-radius:16px;overflow:hidden;padding:0 0 12px;color:inherit;font:inherit}
.acard img,.acover{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--grad);opacity:.95}
.acard b,.acard small{padding:0 12px}.acard small{color:var(--mute)}.acard.ev{padding:14px 12px}.acard.ev b,.acard.ev small{padding:0}
.gal.big{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.gal figcaption{position:absolute;left:6px;bottom:6px;background:#000a;color:#fff;font-size:12px;padding:2px 8px;border-radius:8px}
.pv{display:block;width:100%;max-height:60vh;object-fit:contain;border-radius:14px;background:#000;margin-bottom:12px}
.recipes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:14px}
.recipe{border:1px solid var(--line);border-radius:18px;padding:18px;background:var(--card);border-top:5px solid var(--o)}.recipe p{white-space:pre-wrap;margin:10px 0 0}.recipe small{color:var(--mute)}
.memo{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--card)}
.candles{display:flex;flex-wrap:wrap;gap:6px;min-height:6px;margin-bottom:6px}.candles i{width:10px;height:26px;border-radius:3px;background:linear-gradient(#ffd27a,#ff7a1a);position:relative;box-shadow:0 0 12px rgba(255,160,60,.7)}
.candles i::before{content:"";position:absolute;left:2px;top:-10px;width:6px;height:9px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:#ffcf4d;animation:flick 1.6s ease-in-out infinite alternate}
@keyframes flick{to{transform:scale(.85) translateY(1px);opacity:.8}}
.caps{display:grid;gap:10px;margin-top:14px}.cap{display:flex;gap:14px;border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--card)}
.capico{flex:none;width:76px;height:76px;border-radius:16px;display:grid;place-items:center;font:800 12px Sora,sans-serif;color:#fff;background:var(--grad);text-transform:uppercase;letter-spacing:.04em}
.cap.locked .capico{background:linear-gradient(135deg,#4c3f80,#2f6bff)}.cap small{display:block;color:var(--mute)}.cap p{white-space:pre-wrap;margin:8px 0}
.mapwrap{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--card)}.mapwrap svg{display:block;width:100%;height:auto}
.mapwrap{--land:light-dark(#e6e1f5,#2a2347)}.sea{fill:light-dark(#f4f8ff,#0f1530)}#xMapLand path{fill:var(--land);stroke:light-dark(#fff,#151029);stroke-width:.4;cursor:pointer}#xMapLand path:hover{opacity:.8}
.mpin{cursor:pointer}.mpin circle{stroke:#fff;opacity:.92}.mpin.born circle{fill:var(--o)}.mpin.lived circle{fill:var(--b)}.mpin.died circle{fill:var(--p)}
.mapctl{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:14px;margin:12px 0}.mapctl input[type=range]{flex:1;min-width:140px;accent-color:var(--p)}
.maplegend{display:flex;flex-wrap:wrap;gap:14px;font-size:13px;font-weight:600;color:var(--mute)}.maplegend i{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:6px;vertical-align:middle}
.pin.born{background:var(--o)}.pin.lived{background:var(--b)}.pin.died{background:var(--p)}.maplegend .cty{border-radius:3px;background:color-mix(in srgb,var(--p) 60%,transparent)}
.tline{list-style:none;padding:0 0 0 22px;margin:16px 0;border-left:2px solid var(--line)}
.tline .ty{font:800 20px Sora,sans-serif;margin:18px 0 6px -38px;padding-left:4px;display:flex;align-items:center;gap:10px}.tline .ty::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--grad);flex:none}
.tline .te{padding:6px 0}.tline .te.world{color:var(--mute);font-size:14px}.tline .te.birth::before,.tline .te.death::before,.tline .te.marriage::before,.tline .te.move::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;vertical-align:middle;background:var(--o)}
.tline .te.marriage::before{background:var(--p)}.tline .te.move::before{background:var(--b)}.tline .te.death::before{background:var(--mute)}
.sname{border-radius:18px;padding:16px 18px;margin:12px 0}.sname h3{font-size:22px;margin:0}.sname details summary{cursor:pointer;list-style:none;display:inline-block}
.facts2{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px}
.fact{border:1px solid var(--line);border-radius:18px;padding:18px;background:var(--card);border-top:5px solid var(--c)}.fact p{font:600 17px/1.45 Manrope,sans-serif;margin:0 0 8px}
.seg3{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.seg3 label{margin:0}.seg3 input{position:absolute;opacity:0}.seg3 span{display:inline-block;padding:10px 16px;border-radius:999px;border:1px solid var(--line);background:var(--field);font-weight:700;cursor:pointer}
.seg3 input:checked+span{background:var(--grad);color:#fff;border-color:transparent}.seg3 input:focus-visible+span{outline:3px solid var(--p)}
.chips button.done{opacity:.6}
.gap{border-radius:16px;padding:12px 16px;margin:10px 0}.gap summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:36px}
.hn{padding:8px 0;border-bottom:1px solid var(--line)}.hn small{display:block}
.soulcta{background:linear-gradient(120deg,rgba(255,122,26,.08),rgba(139,92,246,.1),rgba(47,107,255,.08))}
.scnote{font-size:14px;padding:10px 14px;border-radius:12px;background:light-dark(#f3efff,#241c45);margin-bottom:10px}
.scmsgs{max-height:48vh;min-height:180px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:6px 2px 10px}
.scm{max-width:85%;padding:10px 14px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.scm.user{align-self:flex-end;background:var(--grad);color:#fff;border-bottom-right-radius:6px}.scm.assistant{align-self:flex-start;background:var(--card);border:1px solid var(--line);border-bottom-left-radius:6px}.scm.intro{color:var(--mute)}
.scm.typing{display:flex;gap:5px}.scm.typing i{width:8px;height:8px;border-radius:50%;background:var(--mute);animation:bl 1s infinite alternate}.scm.typing i:nth-child(2){animation-delay:.2s}.scm.typing i:nth-child(3){animation-delay:.4s}
@keyframes bl{to{opacity:.25}}
.scform{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-top:10px}.scform textarea{width:100%;min-height:46px;border-radius:14px;border:1px solid var(--line);background:var(--field);padding:10px 14px;font-size:16px;resize:none}
.scsrc{margin-top:10px;font-size:14px}.scsrc summary{cursor:pointer;color:var(--mute);font-weight:600}.scsrc a{color:var(--b);overflow-wrap:anywhere}
/* kids mode */
#kids{position:fixed;inset:0;z-index:90;overflow:auto;display:none;padding:16px max(4vw,16px) 40px;background:linear-gradient(160deg,#fff4e8,#f1ebff 50%,#e8f0ff)}#kids.open{display:block}
#kids h3{font:800 22px Sora,sans-serif;color:#2b1d5c;margin:22px 0 10px}
.khead{display:flex;justify-content:space-between;align-items:center}.khead b{font:800 clamp(26px,6vw,40px) Sora,sans-serif;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.kx{width:52px;height:52px;border-radius:50%;border:0;background:#fff;font-size:22px;box-shadow:0 4px 14px rgba(0,0,0,.12);color:#2b1d5c}.ksub{color:#6a5d93;font-size:18px;margin:4px 0 0}
.kgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}
.kcard{border:0;border-radius:28px;background:#fff;padding:16px 10px;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:0 8px 24px rgba(60,30,140,.14);transition:transform .2s;color:#2b1d5c}
.kcard img,.kcard span{width:96px;height:96px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font:800 34px Sora,sans-serif;color:#fff;background:var(--o)}
.kcard.m span{background:var(--b)}.kcard.f span{background:var(--p)}.kcard.pet span{background:linear-gradient(135deg,#ff7a1a,#ffb347)}
.kcard b{font:800 20px Sora,sans-serif}.kcard small{font-size:15px;font-weight:700;color:#7a6aa8}.kcard.pop{transform:scale(1.08)}
#kids .chips button{background:#fff;color:#2b1d5c}
/* printing */
#printArea{display:none}
@media print{body.printing>*:not(#printArea){display:none!important}body.printing #printArea{display:block}body.printing{background:#fff}
  .printposter svg{width:100%;height:auto}.book{font-family:Georgia,serif;color:#111}.book h1{text-align:center;font-size:36px;margin:30vh 0 0;page-break-after:always}.book h1 small{display:block;font-size:20px;color:#555}
  .book section{page-break-inside:avoid;margin-bottom:28px}.book h2{font-size:22px;margin:0 0 4px}.book .by{color:#666;margin:0 0 10px;font-style:italic}.book pre{white-space:pre-wrap;font:15px/1.55 Georgia,serif}}

.globewrap{position:relative;border-radius:22px;overflow:hidden;background:radial-gradient(circle at 50% 40%,light-dark(#f5f3ff,#1b1640),light-dark(#e9e4ff,#0b0820));border:1px solid var(--line)}
#xGlobe{display:block;width:100%;height:min(78vw,520px);touch-action:none;cursor:grab}#xGlobe:active{cursor:grabbing}
.globebtn{position:absolute;right:12px;bottom:12px}
.glegend{display:grid;gap:8px;margin:12px 0}.gl{display:flex;align-items:center;gap:10px;margin:0;font-weight:600;font-size:15px}
.gl input[type=checkbox]{width:22px;height:22px;accent-color:var(--p);margin:0}.gl input[type=color]{width:40px;height:32px;border:1px solid var(--line);border-radius:8px;background:var(--card);padding:2px;margin:0}
.gl b{color:var(--mute);font-weight:700;margin-left:4px}.gdot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}

/* family globe on the diagram page */
.dgsec{padding:clamp(20px,4vw,40px) max(4vw,14px) 40px;max-width:1240px;margin:0 auto}
.dghead h2{margin:0 0 4px}.dgsec #dgCanvas{display:block;width:100%;height:min(86vw,460px);touch-action:none;cursor:grab}
.dglegend{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0 4px;font-weight:600;font-size:14px}.dglegend b{color:var(--mute);margin-left:4px}
.dgjump{position:absolute;right:12px;top:66px;z-index:4;border-radius:22px;padding:8px 10px 8px 8px;font-weight:700;color:var(--ink);cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;border:1px solid var(--line)}
.dgjump canvas{width:104px;height:104px;display:block}.dgjump span{font-size:13px;max-width:60px;line-height:1.15}
.tgsec{margin:0 0 18px}.tgsec .globewrap{max-width:620px;margin:0 auto}#tgCanvas{display:block;width:100%;height:min(88vw,460px);touch-action:none;cursor:grab}
@media(max-width:700px){#stage{min-height:320px}.dgjump canvas{width:76px;height:76px}.dgjump span{display:none}.dgjump{padding:6px;top:62px}}

/* landing: tree on the left; sample globe tucked above the login card on the right */
.heroVis{margin:8px 0 18px;max-width:520px}
.heroVis .heroArt{margin:0}
.authSide{position:relative;justify-self:center;width:100%;max-width:460px;padding-top:190px}
.authSide .authCard{position:relative;z-index:1;max-width:none}
.heroGlobe{position:absolute;top:0;right:-24px;width:290px;margin:0;z-index:0;display:flex;flex-direction:column;align-items:center;gap:6px}
#heroGlobe{display:block;width:100%;aspect-ratio:1;filter:drop-shadow(0 18px 36px rgba(91,60,200,.30))}
.heroGlobe figcaption{position:absolute;top:8px;right:calc(100% + 12px);white-space:nowrap;display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--mute);padding:10px 12px;border-radius:14px;background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(12px)}
.heroGlobe figcaption i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:middle}
@media(max-width:860px){.authSide{padding-top:150px;max-width:460px}.heroGlobe{width:200px;right:-6px}.heroGlobe figcaption{top:18px;font-size:12px;padding:8px 10px;gap:5px}}

.gstyle{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:6px;vertical-align:middle;flex:none}
.gstyle.now{background:var(--mute);box-shadow:0 0 0 4px color-mix(in srgb,var(--mute) 30%,transparent)}.gstyle.past{border:3px solid var(--mute);background:var(--card)}.gstyle.earlier{width:9px;height:9px;background:var(--mute);opacity:.65;margin:0 8px 0 3px}
.dglegend.small{font-size:13px;color:var(--mute);margin-top:4px}
.mectl{max-width:420px;margin:0 0 12px}.mectl label{margin-bottom:4px}.dgme{margin-top:10px}

.pill.friend{background:light-dark(#fff7cc,#3a3310);color:light-dark(#8a6d00,#facc15)}
.sh_trees{display:grid;gap:8px;margin-bottom:8px}.sh_trees label{margin:0}
.freq{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:14px;background:light-dark(#fff8db,#2f2a10);border:1px solid light-dark(#f5e08a,#5a4d10);margin-bottom:10px}
.freq .who{flex:1;font-weight:600}
.fdot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#facc15;margin-right:8px;vertical-align:middle;box-shadow:0 0 0 3px rgba(250,204,21,.25)}

.socs{gap:8px}.soc{display:inline-flex;flex-direction:column;padding:8px 14px;border-radius:14px;border:1px solid var(--line);background:var(--card);text-decoration:none;color:var(--ink);min-height:44px;justify-content:center}
.soc b{font-size:14px}.soc span{font-size:12px;color:var(--mute)}.soc:hover{border-color:var(--p)}
.rec{padding:12px 14px;border-radius:16px;margin:8px 0}.rech{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.rech .pill{font-size:12px}.pill.ed{background:rgba(139,92,246,.15);color:var(--p)}
.recdl{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;margin:6px 0;font-size:14px}.recdl dt{color:var(--mute)}.recdl dd{margin:0}
.recq{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px;border-radius:16px;border:1px dashed var(--p);margin:6px 0 10px}.recq b{flex:1 1 100%}
.recp{display:grid;grid-template-columns:1fr;gap:4px;padding:8px 0;border-top:1px solid var(--line)}

.lkacts .btn{flex:1 1 calc(50% - 8px);text-align:center;text-decoration:none;justify-content:center}
#lkUrl{font-size:16px}

.dgunder{margin:18px 0 0}.dgunder .globewrap{max-width:none}.dgunder #dgCanvas{height:min(80vw,420px)}
.dgtop .dghead h2{font-size:22px}.dgtotree{width:100%;margin-top:10px}
.tgsec{margin:24px 0 0}.tgsec .globewrap{max-width:none}#tgCanvas{height:min(80vw,420px)}

.wizpanel{max-width:560px}.wizpanel h2{margin:6px 0 4px;font-size:26px}
.wzsteps{display:flex;align-items:center;gap:6px}.wzsteps i{width:28px;height:6px;border-radius:9px;background:var(--line)}.wzsteps i.on{background:linear-gradient(90deg,#ff7a1a,#8b5cf6,#2f6bff)}.wzsteps span{margin-left:6px}
.wzp{border:1px solid var(--line);border-radius:16px;padding:10px 14px 6px;margin:12px 0}.wzp legend{font-weight:800;padding:0 6px}
.wzacts{position:sticky;bottom:0;padding-top:10px}.wzacts #wzNext{margin-left:auto;min-width:150px}
.wzsum{padding:12px 14px;border-radius:14px;margin:12px 0}
.lkacts a.btn{color:var(--ink);display:inline-flex;align-items:center}

.spacebar{position:absolute;left:10px;top:10px;display:flex;gap:2px;padding:3px;border-radius:999px;background:rgba(20,16,50,.72);backdrop-filter:blur(6px);z-index:2}
.spacebar button{border:0;background:transparent;color:#e9e6ff;font:600 12px system-ui,sans-serif;padding:7px 10px;border-radius:999px;cursor:pointer;min-height:32px}
.spacebar button.on,.spacebar button:hover{background:linear-gradient(90deg,#ff7a1a,#8b5cf6,#2f6bff);color:#fff}
@media(max-width:420px){.spacebar button{padding:6px 8px;font-size:11px}}

/* ===== diagram page redesign: Tree/Globe switch, finder, app-style bottom bar on phones ===== */
.ic{display:inline-block;width:18px;height:18px;flex:none;background:currentColor;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.ic-tree{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='19' r='2.5'/%3E%3Ccircle cx='19' cy='19' r='2.5'/%3E%3Cpath d='M12 7.5v4M5 16.5V14h14v2.5'/%3E%3C/svg%3E")}
.ic-people{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.6 3.4-5.5 6.5-5.5s5.7 1.9 6.5 5.5'/%3E%3Cpath d='M16 4.6a3.4 3.4 0 0 1 0 6.8M18 14.7c2 .8 3.2 2.6 3.6 5.3'/%3E%3C/svg%3E")}
.ic-places{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E")}
.ic-related{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3Cpath d='M8.7 10.6l6.6-3.2M8.7 13.4l6.6 3.2'/%3E%3C/svg%3E")}
.ic-extras{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.4 5.2 5.6.6-4.2 3.8 1.2 5.5L12 15.3 7 18.1l1.2-5.5L4 8.8l5.6-.6z'/%3E%3C/svg%3E")}
.ic-members{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 19v-1.5a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4V19'/%3E%3Ccircle cx='9' cy='7' r='3.5'/%3E%3Cpath d='M19 8v6M22 11h-6'/%3E%3C/svg%3E")}
.ic-globe{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.7 3.9 5.7 3.9 9s-1.3 6.3-3.9 9c-2.6-2.7-3.9-5.7-3.9-9S9.4 5.7 12 3z'/%3E%3C/svg%3E")}
.ic-search{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E")}
.tabs [data-v=diagram]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='19' r='2.5'/%3E%3Ccircle cx='19' cy='19' r='2.5'/%3E%3Cpath d='M12 7.5v4M5 16.5V14h14v2.5'/%3E%3C/svg%3E")}
.tabs [data-v=people]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.6 3.4-5.5 6.5-5.5s5.7 1.9 6.5 5.5'/%3E%3Cpath d='M16 4.6a3.4 3.4 0 0 1 0 6.8M18 14.7c2 .8 3.2 2.6 3.6 5.3'/%3E%3C/svg%3E")}
.tabs [data-v=places]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E")}
.tabs [data-v=related]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3Cpath d='M8.7 10.6l6.6-3.2M8.7 13.4l6.6 3.2'/%3E%3C/svg%3E")}
.tabs [data-v=extras]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.4 5.2 5.6.6-4.2 3.8 1.2 5.5L12 15.3 7 18.1l1.2-5.5L4 8.8l5.6-.6z'/%3E%3C/svg%3E")}
.tabs [data-v=members]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 19v-1.5a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4V19'/%3E%3Ccircle cx='9' cy='7' r='3.5'/%3E%3Cpath d='M19 8v6M22 11h-6'/%3E%3C/svg%3E")}

.dvbar{display:flex;gap:10px;align-items:center;padding:10px max(3vw,14px)}
.dvswitch{display:flex;padding:4px;border-radius:999px;background:var(--field);border:1px solid var(--line);flex:none}
.dvswitch button{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--mute);font-weight:800;min-height:40px;padding:0 16px;border-radius:999px;cursor:pointer;transition:background .2s,color .2s}
.dvswitch button[aria-selected=true]{background:var(--grad);color:#fff;box-shadow:0 6px 18px rgba(139,92,246,.35)}
.dvfind{flex:1;display:flex;align-items:center;gap:8px;margin:0;padding:0 14px;border-radius:999px;background:var(--field);border:1px solid var(--line);min-height:48px;color:var(--mute)}
.dvfind input{border:0;background:transparent;margin:0;padding:0;min-height:44px;font-size:16px;box-shadow:none;outline:none;width:100%}
.dvfind:focus-within{border-color:var(--p);box-shadow:0 0 0 3px rgba(139,92,246,.18)}
#v-diagram #stage{height:var(--dvh,calc(100dvh - 190px));min-height:320px;border-radius:24px;margin:0 max(3vw,14px)}
#v-diagram .dgunder{margin:0 max(3vw,14px)}
/* desktop: tree and globe side by side, no scrolling needed */
@media(min-width:900px){
  #v-diagram.on{display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto var(--dvh,calc(100dvh - 190px));column-gap:14px;padding:0 max(3vw,14px)}
  #v-diagram .dvbar{padding:10px 0}#v-diagram #stage{margin:0}
  #v-diagram .dvfind{max-width:520px}
  #v-diagram .dvbar{grid-column:1/-1}
  #v-diagram #stage{grid-row:2;grid-column:1;margin-right:0}
  #v-diagram .dgunder{grid-row:2;grid-column:2;margin:0;overflow:auto;border-radius:24px;padding:14px;background:var(--bg2);border:1px solid var(--line)}
  #v-diagram .dgunder #dgCanvas{height:330px}#v-diagram .dgunder .dghead h2{font-size:20px}}
/* phones & tablets: one thing at a time, filling the screen; tabs become a bottom app bar */
@media(max-width:899px){
  #v-diagram[data-dv=tree] .dgunder{display:none}
  #v-diagram[data-dv=globe] #stage{display:none}
  #v-diagram .dgunder{height:var(--dvh,calc(100dvh - 190px));overflow-y:auto;-webkit-overflow-scrolling:touch;border-radius:24px;padding:12px;background:var(--bg2);border:1px solid var(--line)}
  #v-diagram .dgunder #dgCanvas{height:min(86vw,420px)}
  .dvbar{padding:8px 12px}.dvswitch button{padding:0 12px}
  #v-diagram #stage{margin:0 8px;border-radius:20px}#v-diagram .dgunder{margin:0 8px}
  #work .tabs{position:sticky;top:var(--barh,61px);z-index:19;display:flex;justify-content:space-around;gap:0;padding:4px 4px;border-bottom:1px solid var(--line);background:var(--glass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);overflow:visible}
  #work .tabs button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 2px;min-height:54px;border-radius:16px;font-size:10.5px;font-weight:700;color:var(--mute);background:transparent;white-space:nowrap;position:relative}
  #work .tabs button::before{content:'';width:22px;height:22px;background:currentColor;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
  #work .tabs button[aria-selected=true]{background:transparent;color:var(--p)}
  #work .tabs button[aria-selected=true]::before{background:var(--grad);-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
  #work .tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:0;width:28px;height:3px;border-radius:3px;background:var(--grad)}
  #work .tabs .role{display:none}
  #work .tabs .badge{position:absolute;top:2px;right:calc(50% - 20px)}
  .bar .me .helpbtn{min-width:40px;min-height:40px}
  .dock{flex-direction:column;left:auto;right:10px;transform:none;bottom:10px;padding:4px;gap:2px}
  .dock #zPct{display:none}.dock button{min-width:44px;min-height:40px;font-size:14px;padding:0 6px}
  .depth{top:auto;bottom:10px;left:10px;right:auto;padding:6px 10px;gap:8px}.depth label{font-size:12px;gap:6px}.depth select{min-height:34px}}
#app:has(#work.hide) .bar .helpbtn{display:none}
@media(min-width:900px){#v-diagram .legend{top:auto;bottom:14px;left:12px;right:auto;max-width:calc(100% - 420px);font-size:12px;gap:10px}
  #v-diagram .dock{left:auto;right:12px;transform:none;bottom:14px}}
@media(min-width:900px){#v-diagram .dock #zRange{display:none}#v-diagram .legend{max-width:calc(100% - 290px)}}
@media(min-width:900px){#v-diagram .legend{max-width:calc(100% - 350px)}}

/* SalesLair credit footer + legal pages */
.slfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 18px;padding:18px max(3vw,14px) calc(18px + env(safe-area-inset-bottom));border-top:1px solid var(--line);color:var(--mute);font-size:13px}
.slfoot p{margin:0}.slfoot a{color:var(--ink);font-weight:600;text-decoration:none}.slfoot a:hover{text-decoration:underline}
.slmade{display:flex;align-items:center;gap:8px;color:var(--ink)}.slmade .logo{width:22px;height:22px;border-radius:7px;box-shadow:none}.slmade .logo::after{inset:3px}
.slfoot nav{display:flex;gap:14px;flex-wrap:wrap}
.authfoot{grid-column:1/-1;border-top:1px solid var(--line);padding:16px 0 0;margin-top:8px}
.agree{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.45;margin:4px 0 8px}.agree input{margin-top:3px;flex:none;width:18px;height:18px}
.legalpage{background:var(--bg)}.legal{max-width:760px;margin:0 auto;padding:28px 20px 60px;line-height:1.65}
.legal h1{font-size:clamp(30px,5vw,42px);margin:18px 0 6px}.legal h2{font-size:19px;margin:28px 0 8px}.legal li{margin:6px 0}
.legal .callout{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.legal .caps{font-size:13.5px;letter-spacing:.01em}.legal a{color:var(--p)}.legal .brand{color:var(--ink);text-decoration:none}
.zoombar{position:absolute;left:10px;bottom:10px;display:flex;flex-direction:column;gap:2px;padding:3px;border-radius:14px;background:rgba(20,16,50,.72);backdrop-filter:blur(6px);z-index:2}
.zoombar button{border:0;background:transparent;color:#fff;font:700 20px/1 system-ui,sans-serif;width:40px;height:40px;border-radius:11px;cursor:pointer}
.zoombar button:hover{background:linear-gradient(135deg,#ff6a00,#a35cf0)}

/* ===== tree tools ===== */
.ic-fan{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19a9 9 0 0 1 18 0'/%3E%3Cpath d='M7 19a5 5 0 0 1 10 0'/%3E%3Cpath d='M12 10v9M5.6 12.6 12 19l6.4-6.4'/%3E%3C/svg%3E")}
.ic-stars{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.6 3.6L17 7.2l-2.6 2.4.7 3.6L12 11.4l-3.1 1.8.7-3.6L7 7.2l3.4-.6z'/%3E%3Ccircle cx='5' cy='18' r='1.2'/%3E%3Ccircle cx='19' cy='17' r='1.2'/%3E%3Cpath d='M5 18l7-6.5 7 5.5'/%3E%3C/svg%3E")}
.ic-spark{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M18 6l-2.5 2.5M8.5 15.5 6 18'/%3E%3C/svg%3E")}

.dvtools{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--field);color:var(--ink);font-weight:800;min-height:48px;padding:0 14px;border-radius:999px;cursor:pointer;flex:none}
.dvtools[aria-expanded=true]{border-color:var(--p);color:var(--p)}
.ttools{position:absolute;z-index:30;right:max(3vw,14px);margin-top:-4px;width:min(360px,calc(100vw - 24px));padding:14px 16px;border-radius:20px;box-shadow:0 24px 60px rgba(27,15,58,.25);max-height:70vh;overflow:auto}
#v-diagram{position:relative}
.tthead{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.tthead .btn{min-height:36px;padding:0 10px}
.ttrow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line);margin:0;cursor:pointer}
.ttrow span,.ttsec{display:flex;flex-direction:column;gap:2px}.ttrow small,.ttsec small{color:var(--mute);font-size:12.5px;font-weight:500}
.ttrow input{width:22px;height:22px;accent-color:var(--p);flex:none}
.ttsec{padding:10px 0;border-top:1px solid var(--line);margin:0}.ttsec select{margin-top:6px}
.ttpair{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ttpair select{margin:6px 0 0;min-width:0}
.ttedit{border-top:1px solid var(--line);padding-top:10px;margin:0}
.tmbar{position:absolute;left:50%;transform:translateX(-50%);top:12px;z-index:5;display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:999px;width:min(560px,calc(100% - 24px))}
.tmbar input{flex:1;margin:0;accent-color:var(--o)}.tmbar b{font:800 20px Sora,sans-serif;min-width:52px;text-align:center}
.tmbar button{border:0;background:var(--grad);color:#fff;width:38px;height:38px;border-radius:50%;font-weight:800;cursor:pointer;flex:none}.tmbar #tmX{background:var(--field);color:var(--ink)}
.tmbar #tmCount{white-space:nowrap}
#vp.tm .card,#vp.tm [data-c],#vp.tm [data-s1]{transition:opacity .35s,filter .35s}
#vp .card.tm-fut{opacity:.05;pointer-events:none}#vp .card.tm-past{opacity:.55;filter:grayscale(1)}#vp .tm-hide{opacity:.04}
.ttlegend{position:absolute;left:12px;right:12px;top:12px;z-index:4;display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center;padding:8px 36px 8px 12px;border-radius:16px;font-size:12.5px;font-weight:600;max-height:30%;overflow:auto}
.tmbar:not(.hide)~.ttlegend{top:66px}
.ttlegend i{display:inline-block;width:11px;height:11px;border-radius:4px;margin-right:5px;vertical-align:-1px}.ttlegend em{font-style:normal;color:var(--mute);font-weight:700}
.ttlegend button{position:absolute;right:6px;top:6px;border:0;background:transparent;font-weight:800;cursor:pointer;width:28px;height:28px}
.card .ctag{pointer-events:none}
.cring .crbg{fill:none;stroke:light-dark(rgba(139,92,246,.18),rgba(255,255,255,.12));stroke-width:3}
.cring .crfg{fill:none;stroke:var(--o);stroke-width:3;stroke-linecap:round}.cring.full .crfg{stroke:#16a34a}
.card.focus .cring .crbg{stroke:rgba(255,255,255,.35)}.card.focus .cring .crfg{stroke:#fff}
.card.tdy rect.bx{stroke:#f59e0b;stroke-width:3;animation:tdyglow 1.6s ease-in-out infinite}
@keyframes tdyglow{50%{filter:drop-shadow(0 0 10px rgba(245,158,11,.9))}}
.todaychip{position:absolute;left:50%;transform:translateX(-50%);bottom:64px;z-index:4;display:flex;flex-direction:column;gap:2px;padding:8px 40px 8px 12px;border-radius:16px;max-width:calc(100% - 24px)}
.todaychip .tdline{border:0;background:transparent;text-align:left;font-weight:700;color:var(--ink);cursor:pointer;padding:3px 0}
.todaychip .tdx{position:absolute;right:6px;top:6px;border:0;background:transparent;width:30px;height:30px;font-weight:800;cursor:pointer}
.pathfx .pglow{fill:none;stroke:#ff9a3c;stroke-width:16;stroke-opacity:.28;stroke-linejoin:round;stroke-linecap:round}
.pathfx .pline{fill:none;stroke:#ff7a1a;stroke-width:4;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:10 8;animation:pdash 1s linear infinite}
@keyframes pdash{to{stroke-dashoffset:-18}}
.card.onpath rect.bx{stroke:#ff7a1a;stroke-width:4}.card.pstart rect.bx,.card.pend rect.bx{filter:drop-shadow(0 0 12px rgba(255,122,26,.7))}
.pathcard{position:absolute;left:50%;transform:translateX(-50%);top:12px;z-index:5;display:flex;flex-direction:column;gap:2px;padding:10px 42px 10px 14px;border-radius:16px;max-width:calc(100% - 24px);font-size:14px}
.pathcard span{color:var(--mute);font-size:12.5px}.pathcard button{position:absolute;right:6px;top:6px;border:0;background:transparent;width:30px;height:30px;font-weight:800;cursor:pointer}
.tmbar:not(.hide)~.pathcard{top:66px}
.card.linking{opacity:.5}.card.droptarget rect.bx{stroke:#16a34a;stroke-width:5;filter:drop-shadow(0 0 12px rgba(22,163,74,.7))}
.linkghost{position:fixed;left:0;top:0;z-index:100;pointer-events:none;margin:-48px 0 0 -20px;padding:8px 14px;border-radius:999px;background:var(--grad);color:#fff;font-weight:800;box-shadow:0 10px 30px rgba(27,15,58,.35);white-space:nowrap}
.linkmenu .panel{max-width:420px}.linkopts{display:flex;flex-direction:column;gap:8px;margin:12px 0}.linkopts .btn{justify-content:flex-start;text-align:left}
.dvpane{display:none;position:relative;height:var(--dvh,calc(100dvh - 190px));min-height:320px;border-radius:24px;margin:0 max(3vw,14px);overflow:hidden;background:var(--bg2);border:1px solid var(--line)}
#v-diagram[data-dv=fan] #fanView,#v-diagram[data-dv=stars] #starView{display:block}
#v-diagram[data-dv=fan] #stage,#v-diagram[data-dv=stars] #stage{display:none}
#fanSvg{width:100%;height:calc(100% - 30px);display:block}
.fanseg path{stroke:var(--bg2);stroke-width:2;cursor:pointer;transition:filter .15s}.fanseg:hover path,.fanseg:focus path{filter:brightness(1.12)}
.fanseg.pat path{fill:#ff7a1a}.fanseg.mat path{fill:#6d4ce0}
.fanseg.g1 path{fill-opacity:.95}.fanseg.g2 path{fill-opacity:.8}.fanseg.g3 path{fill-opacity:.66}.fanseg.g4 path{fill-opacity:.52}.fanseg.g5 path{fill-opacity:.4}
.fanseg text{fill:#fff;pointer-events:none;font-family:system-ui,sans-serif}.fanseg .fn{font:800 15px Sora,sans-serif}.fanseg .fy{font-size:11.5px;fill-opacity:.9}
.fanseg .fr{font-weight:700;font-size:12px}.fanseg .fr.g4{font-size:11px}.fanseg .fr.g5{font-size:10px}
.fanseg.g4 text,.fanseg.g5 text{fill:light-dark(#2a1a5e,#fff)}
.fanslot.empty{fill:transparent;stroke:light-dark(rgba(109,76,224,.25),rgba(255,255,255,.15));stroke-dasharray:4 4;stroke-width:1.5}
.fancenter path{fill:url(#fg);cursor:pointer}.fancenter text{fill:#fff;pointer-events:none}.fancenter .fcn{font:800 20px Sora,sans-serif}.fancenter .fcl{font-weight:700;font-size:14px}.fancenter .fcy{font-size:12px}
.fside{font:700 13px system-ui,sans-serif;fill:var(--mute)}.fanempty{font:700 18px system-ui,sans-serif;fill:var(--mute)}
.panehint{position:absolute;left:0;right:0;bottom:6px;text-align:center;margin:0}
.starpane{background:#05040f;border-color:#1d1650}#starCv{display:block;width:100%;height:100%;touch-action:manipulation}
#starTitle{position:absolute;left:14px;top:12px;color:#ece8ff;display:flex;flex-direction:column;gap:2px;pointer-events:none}#starTitle b{font:800 18px Sora,sans-serif}#starTitle span{font-size:12px;color:#b9b2e6}
.starinfo{position:absolute;left:50%;transform:translateX(-50%);bottom:14px;display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:16px;background:rgba(20,16,50,.88);color:#fff;min-width:220px;max-width:calc(100% - 24px)}
.starinfo span{color:#c9c2f2;font-size:13px}.starinfo .acts{margin:6px 0 0}
@media(min-width:900px){#v-diagram .dvswitch{display:flex}#v-diagram .dvswitch .dvglobe{display:none}
  #v-diagram .dvpane{grid-row:2;grid-column:1;margin:0}
  .ttools{right:calc(max(3vw,14px) + 414px)}}
@media(max-width:899px){#v-diagram[data-dv=fan] .dgunder,#v-diagram[data-dv=stars] .dgunder{display:none}
  .dvpane{margin:0 8px;border-radius:20px}
  .dvbar{flex-wrap:wrap}.dvswitch{order:1;flex:1 1 100%;justify-content:space-between}.dvswitch button{flex:1;justify-content:center;padding:0 6px;font-size:13px}.dvswitch button .ic{width:16px;height:16px}
  .dvfind{order:2}.dvtools{order:3;padding:0 12px}.dvtools span{display:none}
  .ttools{right:8px;left:8px;width:auto}
  .todaychip{bottom:64px;left:10px;right:70px;transform:none}}

.ttstack{position:absolute;left:12px;right:12px;top:12px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.ttstack>*{pointer-events:auto}
.ttstack .tmbar,.ttstack .ttlegend,.ttstack .pathcard{position:relative;left:auto;right:auto;top:auto!important;transform:none}
.ttstack .ttlegend{align-self:stretch;max-height:120px}.ttstack .hide{display:none}

/* ===== family crests ===== */
.crestbox{display:flex;gap:16px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--field);margin-bottom:10px}
.crestart{flex:none;width:118px}.crestart svg,.crestart img{width:118px;height:auto;display:block}
.crestimg{border-radius:10px;object-fit:contain;max-height:160px}.crestimg.ph{display:grid;place-items:center;height:130px;background:var(--bg2);color:var(--mute);font-weight:700}
.crestinfo{display:flex;flex-direction:column;gap:4px;min-width:0}.crestinfo .pill{align-self:flex-start;margin-top:4px}
.motto{font:italic 700 16px Georgia,'Times New Roman',serif;color:var(--ink)}
.crestinfo details{margin-top:6px}.crestinfo summary{cursor:pointer;font-weight:700;color:var(--p)}
.crestsym{margin:6px 0 0;padding-left:18px;font-size:13px}.crestsym li{margin:2px 0}.crestsym b{margin-right:4px}
.crestcta{display:flex;gap:14px;align-items:flex-start;padding:12px;border:1.5px dashed var(--line);border-radius:18px;color:var(--p)}.crestcta>div{color:var(--ink)}.crestcta p{margin:4px 0}
.crestpanel{max-width:860px;width:min(860px,calc(100vw - 20px));max-height:92vh;overflow:auto}
.crestchoice{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:14px 0}
.crestchoice .btn{flex-direction:column;align-items:flex-start;gap:2px;min-height:76px;padding:12px 16px;text-align:left}.crestchoice small{font-weight:500;opacity:.8}
.crestprev{display:grid;place-items:center}.crestprev svg{width:100%;max-width:190px;height:auto;filter:drop-shadow(0 8px 16px rgba(27,15,58,.22))}.crestprev.sm svg,.crestprev.sm img{max-width:110px}.crestprev.big svg{max-width:260px}
.crestgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0}
.crestcard{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--line);border-radius:20px;background:var(--field)}.crestcard p{margin:2px 0}.crestcard .btn{margin-top:auto}
.crestnote{background:var(--bg2);padding:8px 12px;border-radius:12px}
.crestload{display:flex;flex-direction:column;align-items:center;gap:6px;padding:30px 10px;text-align:center}
.crestspin svg{width:90px;animation:crestspin 1.6s ease-in-out infinite}@keyframes crestspin{50%{transform:rotateY(180deg) scale(.92)}}
.crestedit{display:grid;grid-template-columns:minmax(200px,1fr) 1.3fr;gap:18px;align-items:start;margin-top:10px}
.crestform{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}.crestform label:nth-child(-n+2){grid-column:1/-1}
.crestdrop{display:grid;place-items:center;min-height:180px;border:2px dashed var(--line);border-radius:20px;cursor:pointer;margin:10px 0;color:var(--mute);font-weight:700}.crestdrop img{max-width:200px;max-height:220px;object-fit:contain}
.crestbadge{pointer-events:none}
@media(max-width:640px){.crestedit{grid-template-columns:1fr}.crestprev.big svg{max-width:200px}.crestbox{flex-direction:column;align-items:center;text-align:center}.crestinfo .pill{align-self:center}.crestsym{text-align:left}}

/* ===== heirlooms & poster ===== */
.heirgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.heircard{display:flex;flex-direction:column;gap:4px;text-align:left;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--field);color:var(--ink);cursor:pointer;font:inherit}
.heircard:hover{border-color:var(--p)}.heircard .pill{align-self:flex-start;margin-top:2px}
.heirpic{display:grid;place-items:center;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--bg2)}.heirpic img{width:100%;height:100%;object-fit:cover}.heiremo{font-size:40px}
.heirchain{list-style:none;margin:8px 0;padding:0 0 0 18px;border-left:3px solid var(--line)}.heirchain li{position:relative;padding:6px 0 10px 10px}
.heirchain li::before{content:'';position:absolute;left:-26px;top:10px;width:13px;height:13px;border-radius:50%;background:var(--bg);border:3px solid var(--p)}.heirchain li.now::before{background:var(--o);border-color:var(--o)}
.heirrow{display:grid;grid-template-columns:1.3fr 1fr .7fr 1.3fr auto;gap:6px;margin-bottom:6px;align-items:center}.heirrow input,.heirrow select{margin:0;min-width:0}.heirrow .hide{display:none}
.heirminis{display:flex;flex-direction:column;gap:6px}.heirmini{display:flex;gap:10px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--field);border-radius:14px;padding:6px;cursor:pointer;color:var(--ink);font:inherit}
.heirmini .heirpic{width:56px;flex:none}.heirmini .heiremo{font-size:24px}.heirmini>span:last-child{display:flex;flex-direction:column}
.xp_checks{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap}.poster.dark{background:#0f0b24}
@media(max-width:640px){.heirrow{grid-template-columns:1fr 1fr;padding:8px;border:1px solid var(--line);border-radius:12px}.heirrow [data-hc=note]{grid-column:1/-1}}

/* ===== check your email ===== */
.checkmail{display:flex;flex-direction:column;gap:10px;text-align:left}
.checkmail .cmicon{font-size:44px;line-height:1}.checkmail h2{margin:0;outline:none}.checkmail p{margin:0}
.cmsteps{margin:4px 0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.cmacts{display:flex;gap:8px;flex-wrap:wrap}.cmacts .btn{flex:1}
