/* Kinloom — an editorial workspace for family history.
   Ink and warm paper establish the canvas; oxblood marks intentional actions. */
:root{--ink:#252b36;--muted:#71737a;--faint:#929197;--paper:#f5f2ec;--surface:#fffdfa;--line:#dedbd4;--accent:#9c3f35;--accent-dark:#7b2b25;--accent-soft:#f4e6df;--sidebar:176px;font-family:'Segoe UI',Arial,sans-serif;font-size:14px;color:var(--ink);background:var(--paper);font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}button,input,select,textarea{font:inherit}button,select,summary{cursor:pointer}button,input,select,textarea{border:1px solid var(--line);border-radius:5px;color:var(--ink);background:var(--surface)}button{padding:10px 14px;line-height:1.2;font-size:12px;font-weight:600;transition:background .15s,border-color .15s}button:hover{background:#ece8e0;border-color:#bbb6ac}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.person:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}a{color:var(--accent)}h1,h2,h3,p{margin-top:0}p{line-height:1.65;color:var(--muted)}.spacer{flex:1}
/* Quiet, persistent navigation */
.rail{position:sticky;top:0;height:100dvh;min-height:620px;background:#252b36;color:#fffdfa;padding:30px 15px 23px;display:flex;flex-direction:column;z-index:3}.brand{display:flex;gap:9px;align-items:center;padding:0 7px 31px}.mark{font:italic 31px Georgia,serif;line-height:35px;color:#f2e3d6;letter-spacing:-3px}.brand strong{display:block;font:25px Georgia,serif;letter-spacing:-.8px;line-height:1.2}.brand span{font-size:6px;letter-spacing:1.1px;display:block;color:#bab8b3;margin-top:6px;white-space:nowrap}.primaryNav{display:grid;gap:5px}.rail button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#b9bbc1;min-height:45px;padding:12px 14px;text-align:left;border-radius:4px;font-weight:500}.rail button svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.rail button small{font-size:11px;line-height:1.3}.rail #treeNav{color:#fff7ef;background:#ffffff0d;box-shadow:inset 3px 0 #bf7865}.rail button:hover{color:#fff;background:#ffffff12}.edition{margin-top:auto;padding:22px 9px 0;border-top:1px solid #ffffff17;font-size:10px;line-height:1.8;color:#a6a8ae}.editionLabel{font-size:8px;letter-spacing:1.4px;color:#c69c8b}.edition>span:last-child{font:italic 11px/1.5 Georgia,serif;display:block;margin-top:15px;color:#a6a8ae;max-width:125px}
/* Header and family context */
main{min-width:0;padding:0 28px}header{height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}.eyebrow{display:block;font-size:9px;letter-spacing:1.6px;font-weight:650;color:var(--muted)}header .eyebrow{font-size:8px;letter-spacing:1.7px;margin-bottom:5px}h1{font:30px/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.65px;margin:0}.account{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px;min-width:0}.account #who{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account button{margin-left:8px;padding:9px 17px;background:transparent}.accountLock{width:14px;height:16px;stroke:#868381;stroke-width:1.5;fill:none;flex-shrink:0}.workspacebar{display:flex;align-items:center;gap:10px;padding:16px 0 15px}.workspacebar select{min-width:192px;max-width:280px;padding:10px 30px 10px 12px;font-size:12px;font-weight:600}.workspacebar #create{border:0;background:transparent;color:var(--muted);padding-left:7px;font-weight:500}.workspacebar #create:hover{color:var(--ink)}.workspacebar #invite{background:transparent}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:11px 0 25px}.sectionLabel{font-size:8px;letter-spacing:1.4px;color:#9a6658;margin-bottom:6px}.intro h2{font:26px/1.15 Georgia,serif;letter-spacing:-.5px;margin:0 0 8px}.intro #stats{font-size:11px;margin:0;color:var(--muted);line-height:1.45}.pill{display:flex;align-items:center;gap:7px;font-size:10px;color:#72716d;white-space:nowrap}.pill svg{width:15px;height:17px;stroke:#83766c;stroke-width:1.35;fill:none}
/* View actions stay prominent; file operations are grouped */
.tools{display:flex;align-items:center;gap:10px;margin-bottom:12px;position:relative;z-index:2}.tools input{height:37px;min-width:160px;width:240px;padding:9px 12px;font-size:12px;background:var(--surface);box-shadow:none}.tools input::placeholder{color:#929095}.tools button{font-size:11px;padding:10px 12px;white-space:nowrap;background:var(--surface)}.viewTools{display:flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:5px;background:var(--surface);height:37px;overflow:hidden;flex-shrink:0}.viewTools button{border:0;background:transparent;height:35px;border-radius:0;padding:9px 12px}.viewTools #fit{border-right:1px solid var(--line);padding:9px 14px;margin-right:3px}.viewTools #minus,.viewTools #plus{width:31px;font-size:15px;padding:8px}.viewTools button:hover{background:#ede9e2}.viewTools output{font-size:10px;color:var(--muted);min-width:36px;text-align:center}.fileMenu{position:relative;flex-shrink:0}.fileMenu summary{list-style:none;font-size:11px;font-weight:600;line-height:16px;padding:9px 12px;border:1px solid var(--line);border-radius:5px;background:var(--surface);white-space:nowrap}.fileMenu summary::-webkit-details-marker{display:none}.fileMenu summary>span{margin-left:12px;color:#86817a;font-weight:400}.fileMenu[open] summary,.fileMenu summary:hover{background:#ede9e2}.fileMenuBody{position:absolute;right:0;top:calc(100% + 7px);width:202px;padding:8px;background:var(--surface);border:1px solid #d2cdc5;border-radius:6px;box-shadow:0 8px 25px #252b3615;display:grid;gap:2px;z-index:8}.menuLabel{font-size:8px;letter-spacing:1.3px;color:var(--faint);padding:7px 10px 9px}.fileMenuBody button{border:0;border-radius:3px;text-align:left;padding:10px;font-weight:500}.fileMenuBody #download{border-top:1px solid var(--line);border-radius:0;margin-top:4px;padding-top:13px}
/* Working canvas and record inspector */
.stage{display:flex;height:calc(100dvh - 319px);min-height:430px;border:1px solid #d4d0c8;border-radius:6px;overflow:hidden;background:var(--surface)}#canvas{position:relative;flex:1;min-width:0;overflow:hidden;background-color:#f0eee8;background-image:radial-gradient(#c9c5be .65px,transparent .65px);background-size:24px 24px;touch-action:none}#tree{width:100%;height:100%;display:block;cursor:grab}#tree:active{cursor:grabbing}.canvasLabel{position:absolute;left:18px;top:17px;display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.4px;color:#86817b;pointer-events:none;z-index:1}.liveDot{display:inline-block;width:5px;height:5px;background:#b17663;border-radius:1px}.hint{position:absolute;bottom:17px;left:18px;font-size:9px;line-height:1.5;color:#89837b;background:#f5f2eceb;padding:6px 9px;pointer-events:none;border-radius:3px}.hint span{font-size:12px;color:#686b72;padding-right:4px}.hint i{font-style:normal;margin:0 6px;color:#afa89e}#minimap{position:absolute;right:16px;bottom:17px;width:132px;height:82px;background:#fcfaf5ed;border:1px solid #d7d2ca;border-radius:4px;cursor:crosshair}#minimap rect:not(#viewport){fill:#a19b91}#minimap #viewport{fill:#9c3f3510;stroke:#9c3f35}#world text{pointer-events:none}.person{cursor:pointer}.person rect{fill:#fffdfa;stroke:#cac5bc;stroke-width:1.4;rx:6px;filter:none}.person circle{fill:#eee6dc}.person:hover rect{stroke:#898278;stroke-width:2}.person.selected rect{stroke:var(--accent);stroke-width:2.5;fill:#fffaf4}.person .name{font-weight:600;fill:#2b303a;letter-spacing:-.1px}.person .dates{fill:#837d74}.person .initial{font:18px Georgia,serif;fill:#796352}.edge{fill:none;stroke:#9e9a93;stroke-width:1.8;opacity:1}.edge.partner{stroke:#ad6a55;stroke-width:2}.edge.adoptive,.edge.step{stroke:#6b7c8a;stroke-dasharray:6 4}#profile{width:288px;flex-shrink:0;border-left:1px solid var(--line);background:var(--surface);padding:24px;overflow:auto;overflow-wrap:anywhere}#profile>.eyebrow{font-size:8px;color:#968a7e;letter-spacing:1.5px}#profile h2{font:29px/1.15 Georgia,serif;letter-spacing:-.65px;margin:14px 0 11px;color:var(--ink)}#profile p{font-size:12px;line-height:1.7;color:#76716d}#profile .avatar,.emptyPortrait{width:62px;height:68px;border:1px solid #e3d6c9;border-radius:4px;background:#f0e5d8;display:grid;place-items:center;color:#866954;font:31px Georgia,serif;margin:25px 0 15px}.emptyPortrait{background:#f3eee6;color:#b2a696}.emptyPortrait svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.2}#profile button{font-size:11px;padding:9px 11px;margin:4px 4px 4px 0;background:transparent;border-color:#d8d1c7}#profile #edit{background:var(--ink);border-color:var(--ink);color:#fff}#profile #edit:hover{background:#424752}#profile #deletePerson{display:block;border:0;background:none;color:#9b4a40;font-size:10px;padding:7px 0;margin:6px 0 0;font-weight:500}#profile #deletePerson:hover{text-decoration:underline}#profile h3{font-size:9px;font-weight:650;letter-spacing:1.1px;text-transform:uppercase;color:#867a6e;margin:24px 0 3px;padding-top:19px;border-top:1px solid var(--line)}.recordMeta{font-size:8px;letter-spacing:1px;color:#9b8e80;margin:10px 0 18px}.facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px 0;margin:18px 0;border-top:1px solid #e7e0d6;border-bottom:1px solid #e7e0d6}.facts span{display:block;font-size:8px;letter-spacing:1.2px;color:#9d8f80;margin-bottom:7px}.facts strong{font-size:12px;font-weight:500;color:#62594f}.profileStory{margin:14px 0 20px}.connectionRow{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #ede6dd;padding:10px 0}.connectionRow strong{display:block;font-size:12px;font-weight:500;margin-top:3px;color:#504b46}.tag{display:inline-block;padding:3px 0;background:transparent;font-size:9px;color:#9b7d65;letter-spacing:.1px}.connectionRow button{border:0!important;color:#95897e!important;padding:5px!important;margin:0!important;font-size:15px!important}.connectionRow button:hover{background:#f0e9df!important;color:#9c3f35!important}.legend{margin-top:33px}.legend h3{margin-bottom:14px!important}.legend p{display:flex;align-items:center;gap:10px;font-size:10px!important;line-height:1.4!important;margin:11px 0;color:#878076!important}.legendLine{display:inline-block;width:24px;border-top:2px solid #9e9a93;flex-shrink:0}.partnerLine{border-color:#ad6a55}.adoptiveLine{border-color:#6b7c8a;border-top-style:dashed}
/* Empty, feedback and focused forms */
#empty{position:absolute;inset:23% 10%;max-width:390px;margin:auto;text-align:center;pointer-events:none}#empty h2{font:31px/1.2 Georgia,serif;color:#4c4640;letter-spacing:-.6px;margin:0 auto 15px;max-width:330px}#empty p{font-size:12px;line-height:1.8;color:#898075;max-width:300px;margin:0 auto 22px}#empty button{pointer-events:auto;background:var(--ink);color:#fff;border-color:var(--ink);font-size:11px;padding:11px 16px}#empty button:hover{background:#454952}#status{min-height:34px;padding:10px 0;font-size:10px;line-height:1.4;color:#87817a}.error,#status.error{color:#a1372a}dialog{width:calc(100% - 40px);max-width:500px;padding:31px;border:1px solid #d9d0c3;border-radius:7px;background:var(--surface);color:var(--ink);box-shadow:0 15px 80px #252b362f}dialog::backdrop{background:#252b3670}dialog h2{font:30px/1.15 Georgia,serif;letter-spacing:-.6px;margin:0 0 17px;padding-right:15px}dialog p{font-size:12px;color:#7b7167;margin:0 0 16px}.close{float:right;border:0;background:transparent;font-size:24px;font-weight:400;line-height:1;padding:0;margin:-8px -8px 0 10px;color:#a0978c}.close:hover{background:transparent;color:var(--ink)}form{display:grid;gap:15px}label{display:grid;gap:7px;font-size:11px;font-weight:500;color:#726457}form input,form select,form textarea{padding:11px 12px;width:100%;font-size:13px;background:#fffdf9;border-color:#d8cfc2}form textarea{min-height:110px;resize:vertical}form p.error{margin:0;font-size:11px}form .primary{margin-top:2px;padding:12px}form #switch{background:transparent;border:0;color:var(--accent);font-size:11px;text-align:left;padding:4px 0;font-weight:500}.member{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.member button{float:right}.member .tag{font-size:10px}#inviteLink{width:100%;padding:11px;font-size:12px}
@media(min-width:1500px){:root{--sidebar:194px}.rail{padding-left:20px;padding-right:20px}main{padding:0 38px}.stage{height:calc(100dvh - 320px)}#profile{width:320px;padding:28px}.tools input{width:300px}.intro h2{font-size:28px}}
@media(max-width:1150px){:root{--sidebar:146px}.rail{padding:28px 10px 22px}.brand{gap:7px;padding-left:4px;padding-right:4px}.brand strong{font-size:22px}.brand span{font-size:5px;letter-spacing:.8px}.mark{font-size:28px}.rail button{padding:12px 10px;gap:9px}.rail button small{font-size:10px}main{padding:0 20px}.tools{gap:8px}.tools input{width:200px}#profile{width:248px;padding:21px}.account #who{max-width:150px}.intro h2{font-size:24px}.workspacebar select{min-width:170px;max-width:230px}.pill{font-size:9px}}
@media(max-width:920px){:root{--sidebar:76px}.rail{padding:25px 8px 20px;align-items:center}.brand{padding:0 0 25px}.brand>div:last-child{display:none}.mark{font-size:33px;line-height:38px}.primaryNav{width:100%;gap:7px}.rail button{flex-direction:column;gap:7px;padding:12px 3px;min-height:64px;text-align:center}.rail button small{font-size:8px}.rail button svg{width:20px;height:20px}.edition{font-size:8px;padding:15px 0 0;text-align:center;line-height:1.8;width:100%}.editionLabel{font-size:6px;letter-spacing:.8px}.edition>span:last-child{display:none}.tools{gap:7px;flex-wrap:wrap}.tools input{flex:1;min-width:180px}.tools .spacer{display:none}.stage{height:calc(100dvh - 320px);min-height:460px}.account #who{display:none}.accountLock{display:none}.workspacebar{gap:6px}.workspacebar button{font-size:10px;padding:10px}.intro{margin-top:8px;margin-bottom:22px}.intro h2{font-size:24px}.pill{display:none}#profile{width:230px;padding:18px}#profile h2{font-size:26px}.fileMenu{margin-left:auto}}
@media(max-width:650px){body{display:block}.rail{position:relative;top:auto;width:100%;height:auto;min-height:0;flex-direction:row;justify-content:space-between;align-items:center;padding:12px 16px}.brand{padding:0;display:flex;gap:7px}.brand>div:last-child{display:block}.brand strong{font-size:21px}.brand span{display:none}.mark{font-size:27px;line-height:30px}.primaryNav{width:auto;display:flex;gap:2px}.rail button{width:46px;min-height:43px;padding:5px 1px;gap:4px}.rail button svg{width:17px;height:17px}.rail button small{font-size:7px;white-space:nowrap}.rail #treeNav{box-shadow:inset 0 -2px #bf7865}.rail .edition{display:none}main{padding:0 16px}header{height:76px;gap:10px}h1{font-size:27px}header .eyebrow{font-size:7px}.account button{font-size:10px;margin:0;padding:8px 12px}.workspacebar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding:14px 0 12px}.workspacebar select{min-width:0;max-width:none;width:100%;font-size:11px;padding-right:20px}.workspacebar #create{font-size:10px;padding:8px 4px}.workspacebar .spacer{display:none}.workspacebar #invite{grid-column:2;font-size:10px;padding:9px 10px}.workspacebar #add{grid-column:3;grid-row:2;font-size:10px;padding:9px 10px}.workspacebar #families{grid-column:1/3;grid-row:1}.workspacebar #create{grid-column:3;grid-row:1}.intro{margin:8px 0 18px}.sectionLabel{font-size:7px}.intro h2{font-size:23px}.intro #stats{font-size:10px}.tools{gap:8px;margin-bottom:12px}.tools input{width:100%;min-width:100%;flex:1;height:38px}.viewTools{height:35px}.viewTools button{height:33px}.viewTools #fit{padding:8px 10px;font-size:10px}.viewTools #minus,.viewTools #plus{width:27px}.viewTools output{font-size:9px;min-width:31px}.fileMenu{margin-left:auto}.fileMenu summary{font-size:10px;padding:8px 9px;line-height:17px}.fileMenu summary>span{margin-left:4px}.tools #print{font-size:10px;padding:9px}.stage{height:auto;min-height:0;flex-direction:column;border-radius:5px}#canvas{height:440px;flex:auto;min-height:440px}#profile{width:100%;height:auto;max-height:470px;border-left:0;border-top:1px solid var(--line);padding:22px}#profile .avatar,.emptyPortrait{width:46px;height:50px;font-size:25px;margin:18px 0 13px}.emptyPortrait svg{width:30px;height:30px}#profile h2{font-size:27px}#profile h2 br{display:none}.legend{margin-top:20px;display:flex;flex-wrap:wrap;gap:0 16px}.legend h3{width:100%;margin-top:8px!important;padding-top:14px!important}.legend p{font-size:9px!important;margin:5px 0}.legendLine{width:19px}.canvasLabel{font-size:7px;left:13px;top:14px}#minimap{width:95px;height:62px;right:12px;bottom:13px}.hint{left:10px;bottom:12px;padding:5px 6px;font-size:8px}.hint i{margin:0 3px}#empty{inset:23% 8%;max-width:320px}#empty h2{font-size:28px;max-width:280px}#empty p{font-size:11px;max-width:245px}#status{font-size:10px;padding:12px 0;min-height:40px}dialog{padding:26px;max-height:90dvh}dialog h2{font-size:27px}.facts{margin:15px 0}.fileMenuBody{right:0}}
@media(max-width:370px){.rail{padding:10px}.brand strong{font-size:18px}.mark{font-size:25px}.rail button{width:41px}.rail button small{font-size:6px}main{padding:0 12px}.tools{gap:5px}.tools #print{padding:9px 7px}.viewTools #fit{padding:8px}.fileMenu summary{padding:8px}.intro h2{font-size:22px}.workspacebar button{padding:9px 7px!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{body{display:block;background:#fff}.rail,header,.workspacebar,.intro,.tools,#profile,.hint,#minimap,#status,#empty,dialog,.canvasLabel{display:none!important}main{width:100%;padding:0}.stage{height:95vh;min-height:0;border:0;border-radius:0;box-shadow:none}#canvas{height:95vh;min-height:0;background:#fff}#tree{width:100%;height:95vh}.person rect{filter:none}@page{size:A3 landscape;margin:10mm}}

/* Editable graph and name suggestions */
.person{cursor:grab}#tree.dragging,.dragging .person{cursor:grabbing}.junction{fill:#8b8176;stroke:#fffdfa;stroke-width:1}.junction.adoptive,.junction.step{fill:#6b7c8a}.nameSearch{position:relative;flex:0 1 280px;min-width:180px}.tools .nameSearch input{width:100%;min-width:0}#searchResults{position:absolute;z-index:12;top:calc(100% + 5px);left:0;width:max(100%,290px);max-width:calc(100vw - 32px);max-height:290px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:5px;box-shadow:0 8px 28px #252b361c}#searchResults[hidden]{display:none}#searchResults button{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:11px 13px}#searchResults button strong{display:block;font-size:12px;font-weight:600}#searchResults button span{display:block;margin-top:4px;font-size:10px;color:var(--muted)}#searchResults button[aria-selected=true]{background:var(--accent-soft)}#searchResults p{padding:12px;margin:0;font-size:12px}.viewTools #arrange{font-size:10px;padding:8px 10px;border-right:1px solid var(--line)}.hint{max-width:calc(100% - 140px);line-height:1.5}.tools{flex-wrap:wrap}@media(max-width:650px){.nameSearch{flex:1 0 100%;min-width:100%;width:100%}.tools .nameSearch input{min-width:0}.viewTools #arrange{font-size:9px;padding:8px 7px}.tools{gap:6px}.fileMenu{margin-left:0}.hint{max-width:calc(100% - 120px);font-size:7px}}

/* v0.3.1: a quieter, more readable working diagram */
header{height:74px}h1{font-family:'Segoe UI',Arial,sans-serif;font-size:23px;font-weight:600;letter-spacing:-.5px}.intro{margin:0 0 13px}.intro h2{font-family:'Segoe UI',Arial,sans-serif;font-size:13px;font-weight:600;letter-spacing:0;margin:0 0 5px}.intro #stats{font-size:11px}.workspacebar{padding:13px 0}.tools{margin-bottom:11px}.stage{height:calc(100dvh - 258px);min-height:480px}#canvas{background:#faf9f6;background-image:none}.canvasLabel{color:#8c8881}.person rect{stroke:#ccc7bf;stroke-width:1.3;fill:#fff}.person.selected rect{stroke:#9c3f35;stroke-width:2}.person .name{font-family:'Segoe UI',Arial,sans-serif;font-weight:600;fill:#252b36}.person .dates{fill:#78756f}.person circle{fill:#f0ece5}.edge{stroke:#737970;stroke-width:1.7;opacity:1;stroke-linejoin:round;stroke-linecap:round}.edge.partner{stroke:#ad6a55;stroke-width:1.8}.edge.adoptive,.edge.step{stroke:#687c8c;stroke-width:1.7;stroke-dasharray:6 5}.junction{fill:#737970;stroke:none}.junction.adoptive,.junction.step{fill:#687c8c}#profile .recordMeta{display:none}#profile{background:#fffdf9}#profile h2{font-size:26px;line-height:1.25}.hint{background:#faf9f6;border:1px solid #e5e1da;padding:6px 8px}@media(min-width:1500px){.stage{height:calc(100dvh - 258px)}}@media(max-width:920px){.stage{height:calc(100dvh - 280px)}}@media(max-width:650px){header{height:67px}h1{font-size:22px}.intro{margin:0 0 12px}.intro h2{font-size:12px}.stage{height:auto;min-height:0}#canvas{height:470px;min-height:470px}.hint{max-width:calc(100% - 120px);font-size:7px}#profile h2{font-size:25px}}@media print{.stage{height:95vh;min-height:0}.intro{display:none}}

.person{-webkit-user-select:none;user-select:none}
/* v0.4 portrait atlas */
:root{--ink:#172741;--accent:#294c7b;--accent-dark:#172f53;--accent-soft:#e8edf5;--paper:#f4f6fa;--surface:#ffffff;--line:#dce2ec;--sidebar:178px}.rail{background:#101d35;background-image:radial-gradient(ellipse at 0 100%,#293f65,transparent 70%)}.mark{color:#d6b97d}.rail #treeNav{background:#ffffff14;box-shadow:inset 3px 0 #d6b97d}.editionLabel{color:#d6b97d}button,input,select,textarea{border-radius:9px}button{padding:10px 14px}.primary{box-shadow:0 3px 8px #172f5318}main{padding:0 26px}header{height:83px}h1{font-size:32px}.intro{margin:4px 0 17px}.intro h2{font-size:27px}.workspacebar{padding:13px 0}.viewSwitcher{display:flex;align-items:center;gap:4px;margin:0 0 15px;padding:5px;background:#e9edf4;border:1px solid #dce2ec;border-radius:12px;width:fit-content;max-width:100%}.viewSwitcher button{background:transparent;border:0;font-size:11px;padding:10px 15px;color:#64738b}.viewSwitcher button[aria-pressed=true]{background:#ffffff;color:#20395d;box-shadow:0 2px 6px #10213c18}.viewSwitcher>span{font:italic 12px Georgia,serif;color:#76839a;padding:0 15px}.stage{height:calc(100dvh - 350px);min-height:440px;border-radius:16px;border-color:#dbe2ed;box-shadow:0 6px 30px #1426450b}#canvas{background-color:#f4f6fb;background-image:radial-gradient(ellipse at 50% 40%,#ffffffb0,transparent 70%),radial-gradient(#a9b8d050 .8px,transparent .8px);background-size:auto,24px 24px}.person>rect{fill:#ffffff;stroke:#c3cedf;stroke-width:1.2;rx:18px;filter:drop-shadow(0 5px 5px #172c4b14)}.person:hover>rect{stroke:#5579a5;stroke-width:2}.person.selected>rect{fill:#fffbf2;stroke:#b38c47;stroke-width:2.5}.person .name{fill:#213857;font-weight:600}.person .dates{fill:#6e7f99}.portrait{border-radius:50%;overflow:hidden}.portraitBack{fill:#e7ecf5!important;stroke:#d4ddec;stroke-width:2}.silhouette{fill:#8196b8!important;stroke:none}.monogram{font:14px Georgia,serif;fill:#ffffff}.edge{stroke:#8b9fbd;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.edge.partner{stroke:#bf9a58;stroke-width:2}.edge.adoptive,.edge.step{stroke:#7d8fb1}.junction{fill:#8b9fbd;stroke:#f5f7ee;stroke-width:1}.junction.partner{fill:#bf9a58}.profilePortrait{width:100px;height:100px;margin:25px 0 3px}#profile{background:#ffffff;width:280px;border-color:#e0e5ef}#profile h2{color:#1f3659}.canvasLabel{color:#6b7f9c;letter-spacing:1.6px}.liveDot{background:#c4a366;border-radius:50%;box-shadow:0 0 0 4px #c4a36625}#minimap{background:#fffffff2;border:1px solid #cbd5e6;border-radius:10px;width:145px;height:90px;box-shadow:0 3px 12px #142b4812}#minimap rect:not(#viewport){fill:#8096b7}#minimap #viewport{stroke:#ba9655;fill:#c5ae6c20}.hint{background:#fffffff0;color:#6e7f98;border:1px solid #dfe6f1;border-radius:8px}#empty h2{color:#1f3659}#profile #edit{background:#294c7b;border-color:#294c7b}.account button{border-radius:30px}.tools .viewTools{border-radius:9px}.fileMenu summary{border-radius:9px}form input[type=checkbox]{width:18px;height:18px}.profilePortrait .portrait{overflow:hidden}
body[data-view=universe] #canvas{background-color:#0d172b;background-image:radial-gradient(ellipse at 50% 50%,#2c426d80,transparent 75%),radial-gradient(#d8e3ff50 1px,transparent 1px);background-size:auto,37px 37px}body[data-view=universe] .canvasLabel{color:#c6d6ee}body[data-view=universe] .edge{stroke:#7896c4}body[data-view=universe] .edge.partner{stroke:#ddbd80}body[data-view=universe] .person>rect{fill:#f8faff;filter:drop-shadow(0 0 12px #90ade825)}
@media(min-width:1500px){.stage{height:calc(100dvh - 350px)}}@media(max-width:1150px){.viewSwitcher>span{display:none}.tools{flex-wrap:wrap}#profile{width:230px}}@media(max-width:920px){:root{--sidebar:76px}.viewSwitcher button{padding:10px}.stage{height:calc(100dvh - 365px)}}@media(max-width:650px){main{padding:0 12px}header{height:80px}h1{font-size:25px}.intro h2{font-size:23px}.viewSwitcher{width:100%;justify-content:space-between;gap:0}.viewSwitcher button{font-size:10px;padding:10px 7px}.stage{height:auto;min-height:0}#profile{width:100%;max-height:450px}.tools .nameSearch{width:100%}.tools .nameSearch input{min-width:0;width:100%}#minimap{width:97px;height:64px}.hint{max-width:calc(100% - 125px);font-size:8px}#canvas{height:480px;min-height:480px}.rail{background:#101d35}}
@media print{.viewSwitcher{display:none}.person>rect{filter:none}#canvas{background:white!important}.edge{stroke:#687d9e}}
.portrait{clip-path:circle(49% at 50% 50%)}.person:focus:not(:focus-visible){outline:none}

/* v0.4.1 Midnight / Pearl / Champagne */
:root{--ink:#172741;--muted:#65738a;--faint:#8c98ac;--accent:#294c7b;--accent-dark:#172f53;--paper:#f4f6fa;--surface:#fff;--line:#dce2ec}.rail{background:linear-gradient(155deg,#15243e,#0d172a 75%)}.brand .mark{color:#ddc18a}.rail #treeNav{box-shadow:inset 3px 0 #d6b97d;background:#ffffff10}.editionLabel{color:#d6b97d}.primary{background:#294c7b;border-color:#294c7b;box-shadow:0 4px 12px #172f531c}.primary:hover{background:#1d3b66;border-color:#1d3b66}#canvas{background-color:#f5f7fc;background-image:radial-gradient(ellipse at 50% 40%,#ffffffc0,transparent 75%),radial-gradient(#9caeca40 .7px,transparent .7px)}.person>rect{fill:#fff;stroke:#c3cedf;filter:drop-shadow(0 5px 6px #172c4b14)}.person.selected>rect{stroke:#bd9654;fill:#fffaf0}.person .name{fill:#1e3659}.person .dates{fill:#6e7f99}.edge.partner{stroke:#c2a062}.portraitBack{fill:#e7ecf5!important;stroke:#d4ddec}.silhouette{fill:#8196b8!important}.pill{color:#78859b}.pill svg{stroke:#9b8458}.recordMeta,#profile>.eyebrow{color:#8a7959}.facts span{color:#8a7959}.facts strong{color:#405475}.tag{color:#8b7248}#profile h3{color:#667995;border-color:#e1e7f1}.connectionRow{border-color:#e9edf4}.connectionRow strong{color:#304869}.legendLine{border-color:#8b9fbd}.partnerLine{border-color:#c2a062}.legend p{color:#74839a!important}.facts{border-color:#e0e6ef}.fileMenuBody{border-color:#d5ddea;box-shadow:0 8px 25px #14274618}.fileMenu summary:hover,.fileMenu[open] summary,.viewTools button:hover{background:#e9edf5}dialog{background:#fff;border-color:#d5ddea;box-shadow:0 15px 80px #12234230}dialog p,label{color:#65738a}form input,form select,form textarea{background:#fbfcff;border-color:#ccd6e5}.person:focus-visible{outline-color:#bd9654}
