@charset "UTF-8";
/* V20 — historical marginalia, responsive alongside the three tree presentations. */
.tree-with-history{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}
.tree-workspace,.historical-context{min-width:0}.historical-context{border:1px solid #ddded3;border-radius:9px;background:#f7f5ee;overflow:hidden}
.history-shell>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;cursor:pointer;list-style:none;margin:0!important;color:#244c4c}
.history-shell>summary::-webkit-details-marker{display:none}.history-shell>summary small{display:block;font:600 11px/1.5 system-ui,sans-serif;letter-spacing:1.5px;color:#746748}.history-shell>summary strong{display:block;font:26px/1.2 Georgia,serif;margin-top:5px}.history-chevron{font-size:24px;transition:transform .15s}.history-shell:not([open]) .history-chevron{transform:rotate(-90deg)}
.history-body{padding:0 18px 18px}.history-body>label{display:block;font-size:14px;margin-bottom:7px}.history-generation-row{display:flex;gap:5px;align-items:stretch}.history-generation-row select{width:0;flex:1;min-width:0;background:#fff;padding:7px 5px;border:1px solid #cbd7d2;border-radius:5px;color:#254f4f;font-size:14px}.history-generation-row button{padding:7px 10px;min-height:40px}
.history-filters{display:flex;flex-wrap:wrap;gap:5px;margin:14px 0}.history-filters button{padding:5px 8px;font-size:13px;min-height:34px;font-weight:500;background:transparent;border-color:#c9d3cc}.history-filters button[aria-pressed=true]{background:#254f4f;border-color:#254f4f;color:white}
.history-period{border-top:1px solid #dcded1;padding-top:16px;margin-bottom:15px}.history-period>span{font-size:11px;font-weight:600;letter-spacing:1.1px;color:#756644}.history-period>strong{display:block;font:31px/1.15 Georgia,serif;color:#244c4c;margin:4px 0 8px}.history-period p,.history-hint{font-size:13px;line-height:1.5;color:#616f69;margin:0}.history-people{margin-bottom:20px}.history-people summary{font-size:13px;color:#345f5b}.history-people>div{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;max-height:180px;overflow:auto}.history-people button{font-size:13px;padding:5px 8px;text-align:left}
.history-region{--history-color:#3e7973;margin:0 0 20px}.history-europe{--history-color:#987537}.history-monde{--history-color:#69799b}.history-region h4{display:flex;align-items:center;gap:7px;margin:0 0 11px;font-size:14px;font-weight:700}.history-region h4>span:last-child{margin-left:auto;font-size:12px;color:#68726b;font-weight:400}.history-region-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--history-color)}
.history-region ol{list-style:none;padding:0 0 0 14px;margin:0 0 0 3px;border-left:1px solid #d4d7ca}.history-region li{position:relative;padding:0 0 16px}.history-region li:last-child{padding-bottom:0}.history-region li:before{content:'';position:absolute;top:7px;left:-18px;width:7px;height:7px;border-radius:50%;background:var(--history-color);box-shadow:0 0 0 3px #f7f5ee}.history-date{display:block;font-size:12px;font-weight:700;letter-spacing:.4px;color:#706141;margin-bottom:3px}.history-region li>strong{display:block;font-size:15px;line-height:1.4;color:#284743;font-weight:600}.history-region li>p{font-size:14px;line-height:1.5;margin:5px 0;color:#5e6d65}.history-region a{display:inline-block;font-size:12px;line-height:1.4;color:#37685f;margin-top:5px}.history-empty{font-size:14px;color:#677468;line-height:1.6;margin-bottom:14px}.history-more{width:100%;font-size:14px;background:#edece2;border-color:#cbd1be;margin-bottom:16px}.history-method{border-top:1px solid #dcded1;padding-top:12px}.history-method summary{font-size:13px}.history-method p{font-size:13px;line-height:1.6;color:#637064;margin-top:10px;margin-bottom:0}.history-overview{padding:14px 0;border-bottom:1px solid #dcded1}.history-overview summary{font-size:15px}.history-overview summary small{display:block;font-weight:400;color:#677468;margin-top:3px}.history-overview[open]>summary{margin-bottom:18px}.history-shell summary:focus-visible{outline:3px solid #b28c49;outline-offset:-3px}
@media(min-width:1600px){.tree-with-history{grid-template-columns:minmax(0,1fr) 340px;gap:24px}.history-body{padding-inline:22px}}
@media(min-width:1101px){.history-body{max-height:760px;overflow:auto;scrollbar-width:thin}}
@media(max-width:1100px){.tree-with-history{grid-template-columns:1fr;gap:16px}.history-body{max-height:580px;overflow:auto}.history-shell>summary{padding:15px 18px}.history-shell>summary strong{font-size:24px}.history-generation-row{max-width:480px}}
@media(max-width:600px){.history-body{padding:0 15px 16px;max-height:560px}.history-generation-row select{font-size:16px}.history-generation-row button,.history-filters button{min-height:44px}.history-filters button{font-size:14px;padding:6px 10px}.history-people button{min-height:40px}.history-shell>summary small{font-size:11px}.history-region li>strong{font-size:16px}}
@media print{.tree-with-history{display:block}.history-body{max-height:none;overflow:visible}.historical-context{margin-top:20px;break-before:page;background:white}.history-generation-row,.history-filters,.history-people,.history-more{display:none}.history-region{break-inside:avoid}.history-shell>summary{padding-left:18px}}
:root{--ink:#173c40;--muted:#687879;--forest:#226469;--gold:#ad803c;--line:#dce4e2;--wash:#f4f7f6;--family:#25766b;--warning:#a77226}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fafbfa;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 13px;font-size:14px;font-weight:550;transition:background .15s,border-color .15s}button:hover{background:#edf4f2;border-color:#8cacaa}button:disabled{opacity:.42;cursor:default}a{color:#276b71;text-underline-offset:3px;overflow-wrap:anywhere}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.graph:focus-visible{outline:3px solid #c99a51;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.6px}h1{font-size:36px;line-height:1.2;margin-bottom:0}h2{font-size:29px;line-height:1.3;margin-bottom:10px}h3{font-size:17px;line-height:1.4;margin-bottom:10px}small{font-size:13px}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:absolute;left:15px;top:-90px;z-index:20;padding:12px;background:white}.skip:focus{top:10px}.masthead{height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:var(--ink);color:#fff}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:#fff}.brand strong{font:27px Georgia;letter-spacing:4px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#c4d6d3}.monogram{border:1px solid #baa377;color:#e5c997;font:32px Georgia;display:grid;place-items:center;height:47px;width:44px;border-radius:22px 22px 4px 4px}.header-note{font-size:13px;color:#d7e1de}.status-dot{display:inline-block;width:6px;height:6px;background:#d2b27a;border-radius:50%;margin-right:9px}.dark-button{background:transparent;color:#fff;border-color:#628084}#mobile-search{display:none}.app-layout{display:grid;grid-template-columns:272px minmax(0,1fr)}.sidebar{border-right:1px solid var(--line);padding:26px 20px;background:#fff;align-self:start;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar-title,.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;color:#758380;margin-bottom:20px}.sidebar>label{font-size:14px;font-weight:600;display:block;margin-bottom:10px}.search-box{display:flex;align-items:center;background:#f4f7f6;border:1px solid var(--line);border-radius:7px;margin-bottom:10px}.search-box>span{padding-left:10px;font-size:26px;color:#688380;line-height:1}.search-box input{padding:11px 8px;min-width:0;width:100%;border:0;background:transparent;font-size:14px;color:var(--ink)}select{padding:9px 27px 9px 10px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);font-size:14px}.sidebar select{width:100%;margin-bottom:15px}.result-count{font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:10px}.results{max-height:50vh;overflow-y:auto;margin:0 -7px;padding:4px 0}.person-result{width:100%;display:block;text-align:left;border:0;border-radius:6px;padding:11px 9px;font-size:14px;font-weight:500}.person-result strong{display:block;line-height:1.35}.person-result small{color:var(--muted);font-weight:400;font-size:12px;display:block;margin-top:4px}.person-result.active{background:#e7f0ed;border-left:3px solid var(--forest)}.empty-results{padding:18px 7px;color:var(--muted);font-size:14px}.more{width:100%;margin-top:12px}.sidebar-bottom{margin-top:22px;border-top:1px solid var(--line);padding-top:18px;font-size:13px}.sidebar-bottom p{color:var(--muted);margin:6px 0 10px}.text-button{border:0;padding:0;background:transparent;color:var(--forest);font-size:13px}.text-button:hover{background:transparent;text-decoration:underline}.sidebar-bottom .text-button{display:flex;width:100%;justify-content:space-between}main{padding:30px 34px;min-width:0;max-width:1800px;width:100%;margin:auto}.page-intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.eyebrow{margin-bottom:8px;color:#9c793d;font-size:10px}.quiet-button{background:transparent}.roots{display:flex;gap:12px;align-items:stretch;margin-bottom:25px}.root-card{display:flex;align-items:center;gap:13px;padding:14px 16px;min-width:245px;text-align:left;background:white;border:1px solid var(--line)}.root-card strong{font-size:16px;font-weight:600;display:block}.root-card small{display:block;font-size:14px;color:var(--muted);margin-top:2px}.root-card>span:last-child{margin-left:auto;color:#78928e}.root-initial{background:#eef3f0;width:41px;height:41px;display:grid;place-items:center;border-radius:50%;font:24px Georgia;color:#4b7974}.root-card.active{border-color:var(--forest);background:#f3f8f5}.together{border:0;background:transparent;font-size:13px;color:var(--muted);padding:9px;min-width:105px}.together.active{color:var(--forest);text-decoration:underline;text-underline-offset:5px}.tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:25px;overflow-x:auto;white-space:nowrap}.tabs button{border:0;border-radius:0;background:transparent;padding:0 0 14px;color:var(--muted);font-size:14px;position:relative}.tabs button.active{color:var(--ink)}.tabs button.active:after{content:"";height:3px;background:var(--forest);position:absolute;bottom:0;left:0;right:0}.tree-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.tree-heading h2{font-size:26px;margin:0 0 4px}.tree-heading p{font-size:13px;color:var(--muted);margin:0}.toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 17px;background:#fff;border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0}.field{display:flex;gap:8px;align-items:center}.field label{font-size:12px;color:var(--muted)}.segmented{display:flex;background:#edf1ef;border-radius:6px;padding:3px;gap:2px}.segmented button{border:0;background:transparent;padding:5px 10px}.segmented button.active{background:white;box-shadow:0 1px 4px #173c4012}.zoom-controls{display:flex;align-items:center;gap:3px;margin-left:auto}.zoom-controls button{border:0;padding:4px 8px;background:transparent;font-size:18px}.zoom-controls output{font-size:12px;text-align:center;min-width:49px}.zoom-controls #fit{font-size:14px;margin-left:7px}.tree-area{border:1px solid var(--line);border-bottom:0;background:#f1f5f3;background-image:radial-gradient(#a9beba66 .75px,transparent .75px);background-size:19px 19px;position:relative}.graph{height:520px;overflow:auto;scrollbar-width:thin;cursor:grab}.graph.dragging{cursor:grabbing;user-select:none}.graph svg{display:block;max-width:none}.graph .card{cursor:pointer}.graph .card rect{filter:drop-shadow(0 2px 2px #163e4208)}.graph .card:hover rect,.graph .card:focus rect{stroke:#27756f;stroke-width:2}.graph .card text{font-family:system-ui,sans-serif;fill:var(--ink)}.graph-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;flex-wrap:wrap;padding:12px 16px;background:white;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;font-size:12px;color:var(--muted)}.legend{display:flex;gap:14px;font-size:12px}.legend>span{white-space:nowrap}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.family{background:var(--family)}.community{background:var(--warning)}.selection-heading{display:flex;justify-content:space-between;align-items:center;margin-top:32px;margin-bottom:14px}.selection-heading h2{font-size:25px;margin:0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{border:1px solid var(--line);background:#fff;border-radius:9px;padding:22px;margin-bottom:16px}.panel h2{font-size:25px}.panel p:last-child{margin-bottom:0}.person-hero{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.person-hero h3{font:28px Georgia;margin-bottom:8px}.person-hero .muted{font-size:13px}.muted{color:var(--muted)}.pill{display:inline-block;font-size:12px;line-height:1.45;background:#edf3f0;color:#376c61;padding:4px 8px;border-radius:4px;margin-bottom:7px}.pill.community{color:#8c631e;background:#faf0db}.pill.neutral{background:#eff2f2;color:#657374}.facts{display:grid;grid-template-columns:110px 1fr;gap:12px 18px;margin:16px 0 0;font-size:14px}.facts dt{color:var(--muted)}.facts dd{margin:0}.person-link{border:1px solid var(--line);padding:8px 10px;background:#fff;border-radius:5px;text-align:left;font-size:14px;line-height:1.4}.person-link small{color:var(--muted);font-size:12px;display:block;margin-top:3px}.person-links{display:flex;flex-wrap:wrap;gap:8px}.group-label{font-size:12px;color:var(--muted);font-weight:500;margin:20px 0 9px}.family-block+.family-block{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.event-note{font-size:13px;color:var(--muted);margin:10px 0}.annotation{border-top:1px solid var(--line);padding:17px 0}.annotation:first-child{border-top:0;padding-top:0}.annotation:last-child{padding-bottom:0}.annotation p{font-size:14px;margin-bottom:8px}.source-links{font-size:12px;line-height:1.8}.source-links a{display:inline-block;margin-right:12px}.source-links span{display:block;color:var(--muted)}.notice{padding:16px 20px;border:1px solid #d5e3de;border-left:3px solid var(--forest);background:#eef5f1;border-radius:0 7px 7px 0;font-size:14px;margin:20px 0}.notice.warning{border-color:#eadbbd;border-left-color:var(--warning);background:#fcf6e9}.notice p:last-child{margin:0}.section-head{max-width:850px;margin-bottom:24px}.section-head>p{color:var(--muted);line-height:1.65}.stats-row{display:flex;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;margin:20px 0}.stat{padding:19px 24px;flex:1}.stat+.stat{border-left:1px solid var(--line)}.stat strong{display:block;font:32px Georgia}.stat span{font-size:12px;color:var(--muted)}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff}.data-table{border-collapse:collapse;width:100%;font-size:14px}.data-table th,.data-table td{text-align:left;padding:14px 17px;border-bottom:1px solid var(--line);vertical-align:top}.data-table th{font-weight:500;font-size:12px;color:var(--muted);background:#f4f7f5}.data-table tr:last-child td{border-bottom:0}.data-table .person-link{border:0;padding:0;background:transparent}.data-table td:first-child{white-space:nowrap}.generation-list{background:#fff;max-height:600px;overflow:auto}.generation-list h3{padding:15px 20px;margin:0;background:#f4f7f5;border-bottom:1px solid var(--line);font-size:14px}.generation-list .data-table{margin-bottom:15px}.finding-card{padding:20px 0;border-bottom:1px solid var(--line)}.finding-card h3{margin:0 0 12px}.finding-card p{font-size:14px;max-width:900px;line-height:1.7;margin-bottom:8px}.finding-card .person-link{border:0;padding:0;background:transparent;font-weight:650}.source-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px 20px;margin-bottom:12px}.source-card strong{font-size:15px}.source-card p{font-size:13px;color:var(--muted);margin:5px 0}.source-card a{font-size:13px}.change-list{padding-left:22px;font-size:14px;line-height:1.8}.plain-list{padding-left:20px;font-size:14px;line-height:1.7}details>summary{cursor:pointer;font-weight:550;font-size:14px}details[open]>summary{margin-bottom:15px}.original-note{white-space:pre-wrap;font-size:14px;line-height:1.7}.actions{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.actions a{font-size:14px;text-decoration:none;border:1px solid var(--line);border-radius:6px;padding:8px 13px;background:#fff}.error{padding:25px;color:#8b412f;background:#fff3ed;border-radius:8px}.view>h3{margin-top:28px}footer{display:flex;justify-content:space-between;gap:20px;margin-top:42px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}footer span:first-child{font:15px Georgia}
@media(min-width:1600px){.graph{height:650px}.root-card{min-width:290px}.results{max-height:60vh}}
@media(max-width:1250px){main{padding:25px 22px}.app-layout{grid-template-columns:242px minmax(0,1fr)}.sidebar{padding:24px 16px}.roots{gap:8px}.root-card{min-width:0;flex:1;padding:12px}.root-card strong{font-size:14px}.root-initial{width:33px;height:33px;font-size:21px}.together{min-width:90px;font-size:12px}.toolbar{gap:10px}.field{gap:5px}.field label{display:none}.tabs{gap:19px}.zoom-controls{margin-left:0}.graph{height:500px}.person-hero{display:block}.person-hero>button{margin-top:10px}}
@media(max-width:950px){.masthead{padding:0 20px;height:73px}.header-note{display:none}#mobile-search{display:block}.app-layout{grid-template-columns:1fr}.sidebar{display:none;position:relative;height:auto;border-right:0;border-bottom:1px solid var(--line);top:auto}.sidebar.open{display:block}.results{max-height:300px}.sidebar-bottom{display:none}main{padding:25px 22px}.root-card strong{font-size:16px}.root-card{max-width:360px}.tabs{gap:24px}.graph{height:500px}.zoom-controls{margin-left:auto}}
@media(max-width:600px){main{padding:23px 14px}.page-intro{margin-bottom:19px}.eyebrow{font-size:9px;letter-spacing:1px}h1{font-size:30px}.roots{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:17px}.root-card{padding:12px 10px;gap:8px;border-radius:7px}.root-card strong{font-size:14px;line-height:1.3}.root-card small{font-size:13px}.root-card>span:last-child{display:none}.root-initial{width:28px;height:28px;font-size:18px;flex-shrink:0}.together{grid-column:1/-1;padding:3px;text-align:left;font-size:12px}.tabs{margin-bottom:21px;gap:20px}.tabs button{font-size:14px;padding-bottom:12px}.tree-heading{display:block;margin-bottom:14px}.tree-heading h2{font-size:24px}.tree-heading>button{margin-top:12px}.toolbar{padding:10px;gap:8px}.toolbar select{font-size:14px;padding:7px}.field{flex:1}.field select{width:100%}.segmented{order:3}.zoom-controls{order:4;flex:1;justify-content:flex-end}.graph{height:470px}.graph-footer{padding:12px}.legend{gap:10px;flex-wrap:wrap}.detail-grid,.two-columns{grid-template-columns:1fr}.panel{padding:18px}.person-hero h3{font-size:25px}.facts{grid-template-columns:85px 1fr;gap:10px;font-size:14px}.stat{padding:16px 12px}.stat strong{font-size:27px}.stat span{font-size:12px}.stats-row .stat:last-child{display:none}.section-head h2{font-size:27px}.data-table td,.data-table th{padding:12px;font-size:14px}.selection-heading h2{font-size:23px}.selection-heading button{font-size:14px}footer{display:block}footer span{display:block;margin-bottom:7px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.masthead{background:white;color:var(--ink);padding:0;height:55px}.brand{color:var(--ink)}.brand small{color:var(--ink)}.monogram,.header-note,.sidebar,.tabs,.toolbar,.roots,.page-intro>button,.quiet-button,.person-hero>button,.actions,#mobile-search,footer{display:none!important}.app-layout{display:block}main{padding:15px 0}.page-intro{margin:12px 0}.graph{overflow:visible;height:auto}.graph svg{max-width:100%;height:auto}.tree-area{background:none}.generation-list{max-height:none;overflow:visible}.table-wrap{overflow:visible}.panel,.finding-card,.source-card{break-inside:avoid;box-shadow:none}.data-table tr{break-inside:avoid}.view.hidden{display:none!important}.person-link{border:0;padding:0}.detail-grid{display:block}.graph-footer{font-size:10px}.selection-heading{margin-top:20px}a{color:var(--ink)}}

/* The 3D view extends the established palette and leaves the previous views intact. */
#space-mode{color:#79541b}#space-mode.active{background:#fff3d8;color:#62400f}
.space-view{background:#183a40;color:#edf7f5;position:relative}
.space-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px 12px}
.space-top strong{display:block;font:22px Georgia,serif}.space-top span{display:block;color:#bfd4d5;font-size:14px;margin-top:4px}
.space-view button{color:#e8f5f3;background:#234d53;border-color:#507276;font-size:14px;min-height:38px}
.space-view button:hover,.space-view button[aria-pressed=true]{background:#406b6d;border-color:#b2d5ce}
.space-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:0 20px 13px}
.space-actions button:first-child,.space-actions button:nth-child(2),.space-actions button[data-space=minus],.space-actions button[data-space=plus]{min-width:38px;font-size:20px;padding:1px 9px}
.space-actions output{font-size:14px;min-width:49px;text-align:center;color:#d9e9e8}
.space-stage{position:relative;min-height:0}.space-stage canvas{width:100%;height:570px;display:block;touch-action:none;cursor:grab}
.space-stage canvas:focus-visible{outline:3px solid #edc783;outline-offset:-4px}.space-stage canvas.moving{cursor:grabbing}
.space-key{position:absolute;pointer-events:none;display:flex;flex-wrap:wrap;gap:5px 17px;top:12px;left:18px;right:18px;color:#d5e6e6;font-size:12px}
.space-key span{display:inline-flex;align-items:center;gap:6px}.space-key i{width:8px;height:8px;border-radius:50%;display:inline-block}
.space-count{position:absolute;bottom:12px;left:18px;right:18px;color:#d5e6e6;font-size:13px;pointer-events:none;text-shadow:0 1px 3px #102c32}
.space-selection{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:15px 20px;border-top:1px solid #416168}
.space-selection label{display:flex;flex-direction:column;gap:5px;font-size:13px;max-width:100%;min-width:220px;flex:1}
.space-selection select{max-width:100%;width:100%;background:#f2f7f5;font-size:14px}
.space-person-summary{font-size:14px;flex:1;min-width:160px;overflow-wrap:anywhere;color:#e6f0ed}
.space-person-actions{display:flex;flex-wrap:wrap;gap:7px}.space-help{color:#bfd4d5;font-size:13px;line-height:1.65;padding:0 20px 17px;margin:0}
.space-view.expanded{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;overflow:auto}
.space-view.expanded .space-stage{flex:1;min-height:190px}.space-view.expanded canvas{height:100%;position:absolute;inset:0}
.space-view.expanded .space-selection,.space-view.expanded .space-actions,.space-view.expanded .space-top,.space-view.expanded .space-help{flex-shrink:0}
@media(min-width:1600px){.space-stage canvas{height:660px}}
@media(max-width:600px){.space-top{padding:14px 12px 12px;gap:10px}.space-top strong{font-size:21px}.space-top span{font-size:13px}.space-actions{padding:0 12px 12px;gap:6px}.space-actions button{min-height:42px}.space-top>button{min-height:42px}.space-stage canvas{height:440px}.space-key{left:12px;right:12px;gap:3px 12px}.space-selection{padding:13px 12px}.space-selection label{flex-basis:100%;min-width:0}.space-person-summary{flex-basis:100%}.space-person-actions{width:100%}.space-person-actions button{flex:1;font-size:14px;min-height:44px;padding:7px}.space-help{padding:0 12px 14px;font-size:13px}.space-view.expanded .space-help{display:none}.space-view.expanded .space-person-summary{display:none}.segmented button{padding:6px 9px}}
@media print{.space-view{background:white;color:var(--ink)}.space-top,.space-actions,.space-selection,.space-help,.space-key,.space-count{display:none!important}.space-stage canvas{width:100%;height:auto}.space-view.expanded{position:static}}

.person-actions{display:flex;flex-wrap:wrap;gap:8px}.kin-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end}
.kin-controls label,.kin-filters label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:550;min-width:0}
.kin-controls input,.kin-filters input{width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:6px;color:var(--ink);font:inherit;background:white}
.kin-controls>button{padding:11px;background:var(--forest);color:#fff}.kin-error{color:#963c27;font-size:14px;margin:0;grid-column:1/-1}.kin-error:empty{display:none}
.kin-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.kin-shortcuts>span{font-size:14px;color:var(--muted)}
.kin-shortcuts button{font-size:14px}.kin-summary{padding:14px 18px;border-left:3px solid var(--forest);background:#e8f0eb;font-size:15px}
.kin-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:9px 9px 0 0}
.kin-toolbar output{font-size:14px;min-width:55px;text-align:center}.kin-toolbar button{min-height:39px}
.kin-graph{height:620px;overflow:auto;background:#f3f7f4;border:1px solid var(--line);cursor:grab;overscroll-behavior:contain;scrollbar-width:thin}
.kin-graph.dragging{cursor:grabbing;user-select:none}.kin-graph svg{display:block;max-width:none;font-family:system-ui,sans-serif}.kin-graph:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.kin-card{cursor:pointer}.kin-card:hover rect,.kin-card:focus rect{stroke:#ad7520;stroke-width:3}.kin-card:focus{outline:none}
.kin-legend{display:flex;flex-wrap:wrap;gap:10px 20px;padding:13px 15px;background:#fff;border:1px solid var(--line);border-top:0;font-size:13px;border-radius:0 0 8px 8px}
.kin-legend>span{display:flex;align-items:center;gap:7px}.kin-swatch{display:inline-block;width:12px;height:12px;border:1px solid #9cbab0;border-radius:3px}.kin-swatch.descendant{background:#e7f1eb}.kin-swatch.other{background:#fff}.kin-swatch.path{background:#fff0ce;border-color:#ad7520}
.kin-help{font-size:14px;color:var(--muted);line-height:1.6;margin:12px 0 22px}.kin-selection{margin-top:20px}.kin-selection-head{display:flex;justify-content:space-between;gap:18px;align-items:start}
.kin-selection-head h3{font:26px Georgia,serif;margin-bottom:7px}.kin-selection-head p{font-size:14px;margin:5px 0}.kin-selection-head+.kin-help{margin-top:15px}
.kin-paths{display:grid;grid-template-columns:1fr 1fr;gap:20px}.kin-paths h4{font-size:14px;margin:12px 0}.kin-paths ol{margin:0;padding-left:23px;border-left:2px solid #ddc496}.kin-paths li{padding:5px 0}.kin-paths .person-link{font-size:14px}
.kin-relatives>h3{font:27px Georgia,serif;margin-top:28px}.kin-filters{display:flex;align-items:end;flex-wrap:wrap;gap:13px;margin:20px 0 14px}.kin-filters label{flex:1;min-width:220px}.kin-filters>span{font-size:14px;color:var(--muted);padding-bottom:10px}
.kin-dates{display:block;font-size:13px;color:var(--muted);margin-top:5px;white-space:normal}.kin-relatives .data-table td:first-child{white-space:normal;min-width:170px}.kin-relatives .data-table td:last-child{white-space:nowrap}
@media(max-width:600px){.kin-controls{grid-template-columns:1fr;padding:16px;gap:12px}.kin-controls input,.kin-controls select,.kin-filters input,.kin-filters select{font-size:16px;min-height:44px}.kin-toolbar{padding:10px;gap:6px}.kin-toolbar button{min-height:42px;padding:7px 10px}.kin-graph{height:470px}.kin-selection-head{display:block}.kin-selection-head .person-actions{margin:12px 0}.kin-paths{grid-template-columns:1fr}.kin-filters label{min-width:100%}.kin-filters>span{padding:0}.kin-shortcuts button{min-height:40px}.kin-legend{font-size:13px}.person-actions{margin-top:10px}}
@media print{.kin-controls,.kin-shortcuts,.kin-toolbar,.kin-filters{display:none}.kin-graph{height:auto;overflow:visible}.kin-graph svg{max-width:100%;height:auto}.kin-selection,.kin-relatives{break-before:page}}

/* V10 — contact familial, sans modification des vues existantes. */
.page-intro{flex-wrap:wrap;gap:14px}.intro-actions{display:flex;align-items:center;gap:10px}.contact-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 15px;border:1px solid var(--forest);border-radius:7px;background:var(--forest);color:#fff;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}.contact-button:hover{background:var(--ink);border-color:var(--ink)}@media(max-width:600px){.intro-actions{gap:8px}.contact-button{min-height:44px}}@media print{.intro-actions{display:none!important}}
