.public-family-search{margin-top:24px;max-width:560px;width:100%;text-align:left}
.public-family-search h3{font:22px/1.3 Georgia,serif;margin:0 0 12px;color:var(--green)}
.public-family-search form{display:flex;gap:8px}
.public-family-search input{flex:1;min-width:0;width:100%;padding:10px 12px;border:1px solid #d9cfba;border-radius:7px;background:#fffdf7;color:var(--green);font:inherit}
.public-family-search .button{white-space:nowrap}
.public-family-search p,.public-family-search a{font-size:14px;line-height:1.5}
.public-family-search a{color:var(--green);text-underline-offset:3px}
.auth-layout>.auth-leaves{bottom:0}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
.family-map-view{position:relative;flex:1;min-height:530px;height:100%;isolation:isolate;background:#f4f1e7;color:#214b3b}.family-map-toolbar{position:absolute;z-index:500;top:18px;left:20px;right:20px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#fbf8eeeF;border:1px solid #d9d0b7;border-radius:12px;box-shadow:0 3px 18px #293c2912}.family-map-toolbar>div{display:flex;align-items:center;gap:8px}.family-map-toolbar h2{font-size:23px;margin:0}.family-map-toolbar select,.family-map-details select{border:1px solid #c9c4ab;background:#fffdf5;color:#244d3c;border-radius:7px;padding:8px;max-width:100%;font:inherit}.map-count{display:flex;gap:6px;align-items:center;font-size:13px;margin-right:auto}.family-map-canvas{height:100%;min-height:530px;background:#ebeadd;z-index:0}.family-map-canvas .leaflet-tile-pane{filter:saturate(.38) sepia(.13)}.family-map-canvas .leaflet-top{top:116px}.family-map-canvas .leaflet-control-attribution{font-size:11px}.family-map-details{position:absolute;z-index:501;top:108px;right:20px;bottom:40px;width:310px;max-width:calc(100% - 75px);overflow:auto;padding:18px;background:#fffdf5f5;border:1px solid #d9d0b7;border-radius:12px;box-shadow:0 4px 20px #243e2415}.family-map-details h3{margin:0 0 8px}.family-map-details p{font-size:13px;line-height:1.5}.map-place-entry{padding:12px 0;border-bottom:1px solid #e1dbc9;display:grid;gap:6px}.map-place-entry small{color:#777d65}.map-profile-links{display:flex;gap:5px 12px;flex-wrap:wrap}.map-profile-links button{font-size:13px}.map-service-note{position:absolute;z-index:400;bottom:4px;left:8px;max-width:65%;font-size:10px;background:#fffdf3cf;padding:2px 5px}.map-person-marker{background:none;border:0}.map-portrait-pin{position:relative;width:52px;height:52px;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);background:#fffdf5;border:2px solid #55755b;box-shadow:0 3px 9px #233d3a38;display:grid;place-items:center}.map-portrait-pin>.map-avatar{transform:rotate(45deg)}.map-avatar{width:42px;height:42px;display:inline-flex;flex:none;align-items:center;justify-content:center;border-radius:50%;background:#e4e9d8;color:#466345;font:20px Georgia,serif;overflow:hidden}.map-avatar img{display:block;width:100%;height:100%;object-fit:cover;max-width:none}.map-portrait-pin b{position:absolute;right:-8px;top:0;background:#244f3d;color:white;border:2px solid #fffdf5;border-radius:20px;padding:1px 5px;font:12px sans-serif;transform:rotate(45deg)}.map-people-popup{display:grid;gap:8px;max-height:300px;overflow:auto}.map-people-popup>strong{font:16px Georgia,serif;color:#244b3b}.map-people-popup button{display:flex;gap:10px;align-items:center;border:0;background:#f7f5eb;padding:6px;border-radius:7px;cursor:pointer;text-align:left;color:#214b3b;font:14px inherit}.map-people-popup .map-avatar{width:34px;height:34px;font-size:16px}.leaflet-popup-content-wrapper{background:#fffdf5}.map-privacy-note{color:#75795f}.family-map-details summary{cursor:pointer;margin-top:14px}@media(max-width:800px){.family-map-toolbar{top:10px;left:10px;right:10px;gap:8px}.family-map-toolbar h2{font-size:19px}.family-map-details{top:165px;right:10px}.family-map-canvas .leaflet-top{top:170px}.map-service-note{max-width:55%}}

.family-map-view{height:calc(100% - 32px);min-height:0}.family-map-canvas{min-height:0}.family-map-details select{width:100%;font-size:12px}.family-map-details .text-button{text-align:left}.family-map-canvas .leaflet-control-attribution{max-width:45vw}.map-service-note{max-width:60%;bottom:3px}@media(max-width:700px){.family-map-view{height:calc(100% - 65px)}.family-map-toolbar{padding:9px}.family-map-toolbar>div{flex-basis:100%}.family-map-toolbar .map-count{font-size:11px}.family-map-toolbar .button{font-size:12px;padding:6px}.family-map-details{top:180px;bottom:28px}.family-map-canvas .leaflet-top{top:180px}.map-service-note{font-size:9px;max-width:50%}}

.main-view>.family-map-view{position:absolute;inset:0 0 32px;height:auto;flex:none}.family-map-view .family-map-details,.family-map-view .leaflet-top{top:var(--map-tools-edge,110px)}@media(max-width:700px){.main-view>.family-map-view{bottom:65px}}

.map-event-badge{position:absolute;left:-10px;bottom:0;transform:rotate(45deg);background:#fffdf5;color:#284d3b;border:1px solid #789078;border-radius:12px;padding:1px 5px;font:700 17px Georgia,serif;white-space:nowrap}.map-life-arrow{display:block;color:#426952;font-size:17px;line-height:18px;text-align:center;text-shadow:0 0 3px #fffdf5}.map-life-legend{position:absolute;z-index:400;bottom:25px;left:12px;display:flex;gap:14px;flex-wrap:wrap;padding:7px 12px;border:1px solid #d9d0b7;border-radius:8px;background:#fffdf5ec;font-size:12px;max-width:calc(100% - 24px)}

.map-person-row{display:grid;position:relative;padding-bottom:22px;filter:drop-shadow(0 2px 3px #203b2425)}.map-person-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;width:74px;height:90px;padding:4px 2px;border:0;border-radius:12px;background:#fffdf5eb;color:#254e3a;cursor:pointer;box-sizing:border-box}.map-person-tile:hover,.map-person-tile:focus-visible{background:#e8eedf;outline:2px solid #648168;outline-offset:0;z-index:1}.map-person-tile .map-avatar{width:46px;height:46px;border:2px solid #fffdf5;box-shadow:0 0 0 1px #6f886b;box-sizing:border-box}.map-person-name{font:11px/14px system-ui,sans-serif;max-width:70px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center;overflow-wrap:anywhere}.map-person-event{position:absolute;right:0;top:35px;border:1px solid #789078;background:#fffdf5;color:#244d3b;border-radius:10px;padding:0 4px;font:700 15px/18px Georgia,serif;white-space:nowrap}.map-shared-point{position:absolute;bottom:0;left:50%;width:7px;height:7px;border-radius:50%;background:#476c53;border:1px solid #fffdf5;transform:translateX(-50%)}.map-shared-point:before{content:'';position:absolute;width:1px;height:16px;bottom:6px;left:2px;background:#648168}

.map-cluster-button{position:relative;display:flex;align-items:center;justify-content:center;width:70px;height:54px;padding:4px;border:0;border-radius:0;background:transparent;color:#244d3b;box-shadow:none;cursor:zoom-in}.map-cluster-button:hover{background:transparent}.map-cluster-button:focus-visible{outline:2px solid #42694d;outline-offset:2px}.map-cluster-faces{display:flex;padding-left:6px}.map-cluster-faces .map-avatar{width:30px;height:30px;font-size:13px;border:2px solid #fffdf5;margin-left:-6px}.map-cluster-button b{position:absolute;right:-5px;top:-5px;background:#315d44;color:white;border:2px solid #fffdf5;border-radius:16px;min-width:22px;padding:1px 5px;font:600 12px/18px system-ui,sans-serif}.map-cluster-events{position:absolute;bottom:-8px;padding:0 5px;border:1px solid #879c7d;background:#fffdf5;border-radius:10px;font:700 14px/17px Georgia,serif}

.family-map-toolbar select{max-width:220px}.map-journey-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:6px}.map-journey-list button{display:flex;gap:9px;align-items:flex-start;width:100%;padding:8px;border:1px solid #dfdbc9;border-radius:8px;background:#f5f3e8;text-align:left;color:#284e3a;cursor:pointer}.map-journey-list button:disabled{opacity:.7;cursor:default}.map-journey-list b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:#e1e8d8;font-size:12px}.map-journey-list strong,.map-journey-list small{display:block}.map-journey-list small{margin-top:3px;font-size:11px;line-height:1.5}

.map-person-tile{height:106px}.map-person-years{display:block;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 11px/14px system-ui,sans-serif;color:#49654b}.map-cluster-years{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fffdf5eb;border-radius:5px;padding:2px 5px;font:600 11px/14px system-ui,sans-serif;color:#35573f}

.map-place-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:10px 0}.map-place-search label,.map-place-search small{grid-column:1/-1}.map-place-search input{min-width:0;width:100%;padding:8px;border:1px solid #d4c8ac;border-radius:6px;background:#fffcf4;color:#214936}.map-place-entry{scroll-margin:12px}
.orders-dialog{width:min(940px,calc(100vw - 32px));max-height:92dvh;border:1px solid #d5c6ad;border-radius:18px;padding:28px;background:#faf7ef;color:var(--green);box-shadow:0 20px 100px #142b2850;overflow:auto}.orders-dialog::backdrop{background:#142b2870;backdrop-filter:blur(4px)}.orders-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.orders-dialog h2{margin:0;font-family:Georgia,serif}.orders-dialog h4,.checkout h4{margin:20px 0 8px}.orders-dialog p,.checkout p{line-height:1.55}.order-test{padding:12px 14px;background:#efe7ca;border:1px solid #d7c69a;border-radius:8px;font-size:14px}.order-list{display:grid;gap:12px}.order-card{display:flex;justify-content:space-between;gap:20px;text-align:left;padding:18px;border:1px solid #d8ceb9;border-radius:10px;background:#fffdf7;color:inherit;cursor:pointer}.order-card>div{display:grid;gap:6px}.order-card>div+div{text-align:right}.order-status{font-size:13px;padding:5px 10px;border-radius:20px;background:#e4ebdd;color:#204c3b;display:inline-block}.order-detail-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.order-detail-head h3{margin-bottom:6px}.order-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.orders-dialog address{font-style:normal;line-height:1.6}.order-history{padding-left:22px}.order-history li{padding:0 0 15px}.order-history small{display:block;margin-top:4px}.order-history p{font-size:13px;margin:5px 0}.order-admin{padding:18px;background:#edf0e6;border-radius:10px;margin:20px 0}.order-admin label,.order-address label{display:grid;gap:6px;margin:10px 0}.order-admin input,.order-admin select,.order-admin textarea{width:100%}.order-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.order-pagination{display:flex;align-items:center;gap:12px;justify-content:center;margin-top:20px}.order-address{border:1px solid #d8ceb9;border-radius:9px;padding:12px;margin:18px 0}.order-address legend{font-family:Georgia,serif}.order-check{display:flex!important;align-items:flex-start;gap:9px;font-size:14px;line-height:1.5;margin:16px 0!important}.order-check input{width:17px!important;height:17px;flex:0 0 17px;margin-top:3px}.checkout .button{margin-top:12px}.order-payment{padding:14px;background:#e7eee0;border-radius:10px;overflow-wrap:anywhere}.checkout-confirm{border-top:1px solid #d8ceb9;margin-top:16px;padding-top:4px}.orders-dialog .text-button{margin:12px 14px 12px 0}@media(max-width:650px){.orders-dialog{padding:18px}.order-detail-grid{grid-template-columns:1fr;gap:12px}.order-card,.order-detail-head{flex-direction:column;align-items:stretch}.order-card>div+div{text-align:left}.order-fields{grid-template-columns:1fr}}

.orders-dialog .order-view-switch{display:flex;gap:4px;width:fit-content;max-width:100%;margin:18px 0 8px}.order-view-switch button{white-space:normal}
.profile-collaboration{font-size:14px;line-height:1.6;margin:18px 0}.profile-collaboration details,.profile-collaboration>summary{border-top:1px solid #d9ccb5;padding-top:12px;margin-top:12px}.profile-collaboration summary{cursor:pointer;color:#204c3b;font-weight:600}.profile-collaboration summary small{margin-left:8px}.profile-collaboration label{display:grid;gap:5px;margin:12px 0}.profile-collaboration input,.profile-collaboration textarea,.profile-collaboration select{box-sizing:border-box;width:100%;padding:9px 11px;border:1px solid #d9ccb5;border-radius:7px;color:#294735;background:#fffcf4;font:inherit}.profile-collaboration article{padding:12px 0;border-bottom:1px solid #d9ccb580;overflow-wrap:anywhere}.profile-collaboration article p{margin:5px 0;white-space:pre-wrap}.profile-collaboration article small{display:block;color:#74816a}.profile-collaboration .history-values{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;white-space:pre-wrap;max-height:180px;overflow:auto;margin:8px 0}.collaboration-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.profile-collaboration [role=alert]{color:#904b33}.approximate-dates{grid-column:1/-1;font-size:13px;margin:8px 0}.approximate-dates summary{cursor:pointer;color:#486347}.approximate-dates form{display:grid;gap:9px}.approximate-dates label{display:grid;gap:5px}.approximate-dates input,.approximate-dates select{width:100%;padding:8px;box-sizing:border-box}.approximate-dates p{line-height:1.5}
.profile-collaboration label.merge-choice{display:flex;align-items:flex-start;gap:9px}.profile-collaboration .merge-choice input{width:auto;flex:none;margin-top:6px}
.profile-collaboration .print-draft-row{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}.print-draft-row>strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.print-draft-row .collaboration-actions{flex:none;flex-wrap:nowrap;gap:10px}.print-draft-row .text-button{white-space:nowrap}
.account-drafts{max-height:260px;overflow-y:auto}.account-drafts-label{display:block;padding:8px 12px 4px;font-size:12px;color:#74816a}.account-drafts>small{display:block;padding:8px 12px}.account-drafts>button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:6px;background:none;text-align:left;font:inherit;font-size:14px;color:#204c3b}.account-drafts>button:hover,.account-drafts>button:focus-visible{background:#edf0e3;outline:1px solid #cbd4bb}.account-drafts>button svg{flex:none}.account-drafts>button span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-dropdown{max-height:calc(100dvh - 90px);overflow-y:auto}
.life-story{border:1px solid var(--line,#d8c9ad);border-radius:12px;margin:0 0 20px;background:rgba(255,255,255,.22)}
.life-story-heading{display:flex;align-items:center;gap:12px;width:100%;padding:15px;text-align:left;border:0;background:transparent;color:inherit;cursor:pointer}
.life-story-heading>span{flex:1;min-width:0}.life-story-heading strong,.life-story-heading small{display:block}.life-story-heading small{font-weight:400;line-height:1.45;margin-top:4px}
.life-story-body{display:grid;gap:14px;padding:0 15px 16px}.life-story-body fieldset{margin:0;padding:12px;border:1px solid var(--line,#d8c9ad);border-radius:8px}
.life-story-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}.life-story-categories label{display:flex;align-items:center;gap:7px;font-size:14px}.life-story-categories input{width:16px!important;height:16px;flex:0 0 16px;margin:0}
.life-story-body textarea{width:100%;line-height:1.65;resize:vertical}.life-story-body .field{display:grid;gap:6px}.life-story-voice{opacity:.8}.synthetic-audio-label{display:block;font-size:12px;font-weight:400;opacity:.75;margin-top:3px}
@media(max-width:450px){.life-story-categories{grid-template-columns:1fr}}

.button.life-story-launch{display:flex;width:fit-content;max-width:100%;margin:20px 0 22px auto;padding:8px 12px;gap:7px;font-size:12px;line-height:1.4;text-align:left;min-height:34px}.life-story-launch svg{flex-shrink:0}.life-story-dialog{width:min(840px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;margin:auto;padding:24px;border:1px solid #d8c9ad;border-radius:16px;background:#faf7ed;color:#234b3b;box-shadow:0 12px 60px #213e3433;overflow:auto}.life-story-dialog::backdrop{background:#203c3155;backdrop-filter:blur(3px)}.life-story-dialog .modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.life-story-dialog h2{font:27px/1.2 Georgia,serif;margin:0 0 8px}.life-story-dialog .modal-heading p{font-size:14px;line-height:1.5;margin:0}.life-story-dialog .life-story-body{padding:0}.life-story-dialog .field input,.life-story-dialog .field textarea{box-sizing:border-box;width:100%;padding:11px 13px;border:1px solid #d3c5a7;border-radius:7px;background:#fffdf7;color:#254a38;font:inherit}.life-story-dialog .field textarea{line-height:1.7}.life-story-steps{margin:0;font-size:13px;color:#657957}.life-story-footer{display:flex;justify-content:flex-end;padding-top:12px;border-top:1px solid #ded4be}.life-story-dialog small{line-height:1.5}.life-story-dialog .life-story-categories label{font-size:13px}@media(max-width:500px){.life-story-dialog{padding:18px}.life-story-dialog h2{font-size:23px}}
.life-story-dialog input[type="checkbox"]{accent-color:#315d44}
.family-research{margin-bottom:24px}.research-editor{margin-top:16px;padding:18px;border:1px solid #d5c9ac;border-radius:12px;background:#f8f4e9}.research-editor h3{margin:0 0 8px}.research-editor h4{margin:22px 0 8px;color:#1e4838}.research-editor p{font-size:14px;line-height:1.55}.research-editor fieldset{border:0;padding:0;margin:0;min-width:0}.research-editor details{padding:10px 0;border-bottom:1px solid #ded4be}.research-editor summary{cursor:pointer;font-size:14px}.research-editor pre{white-space:pre-wrap;font:inherit;font-size:13px;line-height:1.6;max-height:280px;overflow:auto}.research-relatives{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.research-relatives label{display:flex;gap:8px;align-items:center}.research-relatives input{width:16px!important;flex:0 0 16px}.research-relatives small,.research-source summary small{display:block;color:#7c846e;font-size:12px}.research-status{padding:10px;border-left:2px solid #b8c3a9}.research-editor .field{margin-top:12px}.research-editor>.muted{margin-bottom:16px}.research-editor .primary{margin-top:20px}.research-editor fieldset>small{display:block;margin-top:8px}

.research-step{margin:22px 0;padding:18px 0;border-top:1px solid #c9bfa7}.research-step>h4{margin-top:0}.research-request{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #ded4be;flex-wrap:wrap}.research-request small,.research-step blockquote small{display:block}.research-source summary{display:flex;justify-content:space-between;align-items:center;gap:12px}.research-source .button{white-space:nowrap;color:inherit;text-decoration:none}.research-step blockquote{margin:14px 0;padding:12px;border-left:3px solid #1e4838;background:#fff8}.research-step blockquote p{white-space:pre-wrap}

.research-report { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.research-consent { display:flex; align-items:flex-start; gap:8px; margin:12px 0; }
.research-consent input { width:16px; height:16px; flex:0 0 16px; margin-top:3px; }
.research-runs ul { padding-left:20px; overflow-wrap:anywhere; }

.research-runs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.research-runs details > summary::after { content: "⌄"; margin-left: auto; padding-left: 8px; }
.research-runs details[open] > summary::after { content: "⌃"; }

.research-main-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.research-targeted{margin:16px 0}.research-targeted>summary{cursor:pointer;color:var(--green);padding:8px 0}

.research-source-hint{font-size:12px;line-height:1.5;color:#6b725d;max-width:56ch;margin:5px 0}.research-request>div:first-child{flex:1 1 240px}

.research-context{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;padding:12px 14px;background:#e9eddf;border-radius:8px;font-size:14px}.research-context>span{color:#65725a}.research-editor details.research-step{margin:12px 0;padding:14px;border:1px solid #d6cbb3;border-radius:9px;background:#fffcf580}.research-step>summary{font-weight:600;color:var(--green)}.research-step>summary small{display:block;font-weight:400;color:#6d7861;margin:5px 0 0;font-size:12px}.research-editor .research-next-heading{margin-top:22px}@media(max-width:500px){.research-context{grid-template-columns:1fr;gap:3px}.research-context strong{margin-bottom:6px}}
.admin-console{max-width:1250px;margin:0 auto;padding:28px;color:var(--green)}.admin-console>header{display:flex;justify-content:space-between;gap:20px}.admin-console>header a,.admin-console nav button{display:inline-flex;align-items:center;gap:8px}.admin-console h1,.admin-console h2{font-family:Georgia,serif;font-weight:400}.admin-search{display:flex;gap:10px;align-items:center;margin-top:24px;flex-wrap:wrap}.admin-search input{flex:1;min-width:180px}.admin-columns{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,1.3fr);gap:24px}.admin-list-item{display:grid;gap:5px;text-align:left;width:100%;padding:14px;margin:0 0 8px;border:1px solid #d8ccb3;background:#fffaf1;color:inherit;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}.admin-detail{padding:24px;border:1px solid #d8ccb3;border-radius:12px;background:#fffaf1}.admin-detail label{display:grid;gap:6px;margin-bottom:16px}.admin-detail input{width:100%;box-sizing:border-box}.admin-detail .admin-role{display:flex;align-items:center;gap:8px}.admin-role input{width:auto}.admin-detail small{display:block;margin-bottom:16px}.admin-mail-body{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.65}.contact-invitation{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:4px;font-size:12px}.contact-invitation .text-button{font-size:12px;display:inline-flex;gap:4px;align-items:center}.contact-invitation .icon-button{width:22px;height:22px;padding:3px}.contact-invitation small,.invitation-share{flex-basis:100%}.invitation-share textarea{width:100%;min-height:120px;box-sizing:border-box}.invitation-share>a{margin-right:12px}@media(max-width:700px){.admin-columns{grid-template-columns:1fr}.admin-console{padding:18px}}

.admin-console input:not([type="checkbox"]),.admin-console select{padding:10px 12px;border:1px solid #cbbd9f;border-radius:7px;background:#fcf7eb;color:inherit;font:inherit;min-height:42px}.admin-console>header a{color:inherit;text-decoration:none}.person-contacts dd{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}.person-contacts dd>.inline-profile-form{flex-basis:100%}.contact-invitation{margin-top:0}.admin-console .admin-mail-body{max-width:100%;min-width:0}
/* System fonts intentionally keep the local prototype usable without external font services. */
:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #233c30;
  background: #f8f5ed;
  font-synthesis: none;
  font-weight: 400;
  --green: #204b38;
  --deep: #183f2e;
  --orange: #c76f49;
  --muted: #827e71;
  --line: #e2dacb;
  --paper: #fbf8f1;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #d59870;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
button,
input {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button svg {
  flex-shrink: 0;
}
svg {
  vertical-align: middle;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 31px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 20px;
}
p {
  line-height: 1.7;
}
.app-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #f8f5ed;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.035' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.main-header {
  height: 92px;
  min-height: 92px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 35px;
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 0;
  white-space: nowrap;
}
.brand > svg {
  width: 43px;
  height: 56px;
}
.brand > span {
  font: 30px/1.05 var(--serif);
  letter-spacing: -1.2px;
  color: var(--deep);
}
.brand em {
  font-weight: 400;
  font-size: 0.83em;
}
.brand small {
  display: block;
  font:
    8px "Segoe UI",
    sans-serif;
  letter-spacing: 2.4px;
  color: #898875;
  margin-top: 2px;
  line-height: 1.2;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 410px;
  width: 100%;
  margin: auto;
  padding: 11px 14px;
  border: 1px solid #ded7c8;
  border-radius: 8px;
  color: #8a897b;
  background: #fcfaf5;
}
.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: #334738;
  font-size: 13px;
  min-width: 0;
}
.search-wrap input::placeholder {
  color: #9a9589;
}
.search-wrap kbd {
  font: 12px inherit;
  border: 1px solid #e5dfd4;
  border-radius: 4px;
  padding: 0 5px;
  color: #a9a295;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.button {
  border: 1px solid #d9cfbd;
  border-radius: 6px;
  background: #fcfaf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  min-height: 41px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #f0ebdf;
  border-color: #c9bda6;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  box-shadow: 0 3px 7px #204b3810;
}
.button.primary:hover {
  background: #143a29;
}
.add-main.primary {
  background: #c77550;
  border-color: #c77550;
  padding: 12px 18px;
}
.add-main.primary:hover {
  background: #b7613c;
}
.button.full {
  width: 100%;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #6e7567;
}
.icon-button:hover {
  background: #eee9dd;
}
.user-badge {
  position: relative;
  border: 1px solid #d0d8c3;
  background: #e6e9db;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  font: 20px var(--serif);
  flex-shrink: 0;
}
.user-badge span {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: #709261;
  width: 10px;
  height: 10px;
  border: 2px solid #fcfaf4;
  border-radius: 50%;
}
.workspace-bar {
  min-height: 83px;
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 35px;
  border-bottom: 1px solid #e4ddcf;
  background: #faf7efb3;
  position: relative;
  z-index: 20;
}
.family-picker {
  position: relative;
  min-width: 250px;
}
.family-button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 0;
}
.family-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: 9px;
  background: #e9eddf;
  color: #5d7857;
}
.family-button small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #8c8b78;
  margin-bottom: 5px;
}
.family-button strong {
  font: 19px var(--serif);
}
.family-button > svg {
  margin-left: 12px;
  color: #8b8b7c;
}
.segmented {
  display: flex;
  padding: 4px;
  background: #eeeade;
  border: 1px solid #e3dbcc;
  border-radius: 7px;
  gap: 3px;
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 12px;
  color: #777a6d;
}
.segmented button.active {
  background: #fffdf7;
  color: #244d36;
  box-shadow: 0 2px 6px #52463310;
}
.segmented button.active svg {
  color: #597a4e;
}
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 250px;
  justify-content: flex-end;
}
.people-count {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #777e6e;
}
.backup-button {
  padding: 8px 13px;
  min-height: 35px;
  background: transparent;
}
.workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
}
.main-view {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.canvas-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 36px 6px;
  position: relative;
  z-index: 4;
  pointer-events: none;
}
.canvas-heading h1 {
  margin-top: 9px;
  font-size: 27px;
  letter-spacing: -0.7px;
}
.eyebrow {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.7px;
  color: #8d9279;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.focus-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfd9c9;
  border-radius: 30px;
  padding: 5px 10px 5px 5px;
  font-size: 10px;
  background: #fffdf7b3;
  color: #838572;
  pointer-events: auto;
  white-space: nowrap;
}
.focus-chip strong {
  font-weight: 600;
  color: #536b4a;
}
.focus-chip button {
  padding: 3px;
  margin-left: 6px;
  color: #7c846d;
}
.tree-canvas {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  outline-offset: -3px !important;
}
.tree-canvas.dragging {
  cursor: grabbing;
}
.tree-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.connections {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}
.parent-line {
  fill: none;
  stroke: #8c9677;
  stroke-width: 2.7;
}
.parent-line.highlighted {
  stroke: #718360;
  stroke-width: 2;
}
.partner-line {
  fill: none;
  stroke: #9c9f84;
  stroke-width: 2;
}
.node-wrap {
  position: absolute;
  width: 196px;
  height: 108px;
  z-index: 2;
  isolation: isolate;
}
.person-card {
  width: 196px;
  height: 108px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 15px 16px;
  border: 1px solid #cec4ad;
  border-radius: 12px;
  background: linear-gradient(125deg, #fffdf8, #f6f1e6);
  box-shadow:
    0 4px 7px #55493313,
    0 1px 2px #55493312;
  transition:
    box-shadow 0.15s,
    border-color 0.15s,
    background 0.15s;
  position: relative;
}
.person-card:hover {
  box-shadow: 0 7px 18px #55493325;
  border-color: #899879;
  background: #fffdf8;
}
.person-text {
  min-width: 0;
  display: block;
}
.person-text strong {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
}
.person-text small {
  display: block;
  font-size: 11px;
  color: #717767;
  margin-top: 7px;
  white-space: nowrap;
}
.avatar {
  display: inline-flex;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #e8ebde;
  color: #6a7a5b;
  border: 2px solid #fffdf5;
  box-shadow: 0 0 0 1px #d7d3c0;
  font: 20px var(--serif);
  overflow: hidden;
  background-repeat: no-repeat;
}
.avatar.photo {
  background-color: #e7e4d9;
}
.focal {
  z-index: 3;
}
.focal .person-card {
  border: 2px solid #cd8158;
  background: linear-gradient(120deg, #fffdf7, #f5efe2);
  box-shadow: 0 4px 12px #bc805c22;
}
.focal .avatar {
  box-shadow: 0 0 0 1px #cf8a64;
}
.focal .person-text strong {
  font-size: 17px;
}
.focal .person-card {
  gap: 11px;
  padding: 12px;
}
.focus-label {
  position: absolute;
  bottom: calc(100% + 24px);
  width: 250px;
  left: -27px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: #a37754;
  pointer-events: none;
}
.focal-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  right: 10px;
  top: 10px;
  border-radius: 50%;
  background: #cc845d;
}
.selected .person-card {
  box-shadow: 0 0 0 3px #c98a5d25;
}
.node-add {
  width: 24px;
  height: 24px;
  border: 1px solid #b5b89a;
  background: #fbf9f1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: calc(50% - 12px);
  box-shadow: 0 2px 3px #514a3310;
  z-index: 4;
  padding: 0;
  color: #647559;
}
.node-add:hover {
  background: #e7eadc;
  border-color: #6d805d;
}
.node-add.top {
  top: -12px;
}
.node-add.bottom {
  bottom: -12px;
}
.node-focus {
  position: absolute;
  bottom: 5px;
  right: 5px;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: #f3f0e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #76846b;
  opacity: 0;
  transition: opacity 0.15s;
}
.node-wrap:hover .node-focus,
.node-focus:focus-visible {
  opacity: 1;
}
.other-parent {
  position: absolute;
  bottom: calc(100% + 19px);
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #a19b8a;
  font-style: italic;
}
.other-parent.is-common {
  color: #65845b;
}
.common-child .person-card {
  border-color: #a5b594;
  background: linear-gradient(125deg, #fffff8, #f2f3e8);
}
.partner-switch {
  position: absolute;
  top: calc(100% + 22px);
  left: -14px;
  width: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9px;
  color: #8b8a75;
}
.partner-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid #ded8c6;
  background: #f9f7ee;
  border-radius: 50%;
}
.map-controls {
  position: absolute;
  bottom: 29px;
  left: 35px;
  display: flex;
  align-items: center;
  background: #fffdf7;
  border: 1px solid #dbd3c1;
  border-radius: 8px;
  box-shadow: 0 2px 8px #4d472609;
  height: 41px;
  cursor: default;
}
.map-controls button {
  height: 100%;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e9e2d4;
}
.map-controls button:last-child {
  border-right: 0;
  border-left: 1px solid #e9e2d4;
}
.map-controls button:hover {
  background: #ececde;
}
.map-controls span {
  font-size: 11px;
  min-width: 51px;
  text-align: center;
  color: #8b8a78;
}
.map-hint {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #9b9b86;
  white-space: nowrap;
  pointer-events: none;
}
.map-hint i,
.local-status i {
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: #bdbbaa;
  margin: 0 5px;
}
.tree-legend {
  position: absolute;
  right: 33px;
  bottom: 43px;
  font-size: 9px;
  color: #91937c;
  display: flex;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #91a382;
}
.botanical {
  color: #b6b18e;
  pointer-events: none;
}
.canvas-leaves {
  position: absolute;
  width: 200px;
  height: 310px;
  opacity: 0.33;
  z-index: 0;
}
.canvas-leaves.left {
  left: -45px;
  top: 20px;
  transform: rotate(160deg);
}
.canvas-leaves.right {
  right: -22px;
  bottom: -10px;
  transform: rotate(-17deg);
  opacity: 0.4;
}
.local-status {
  height: 29px;
  min-height: 29px;
  border-top: 1px solid #e8e0d155;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #9a9c8b;
  background: #f8f5ed77;
}
.local-status > span:first-child {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8ea27d;
}
.local-status button {
  padding: 2px;
  color: #929985;
}
.person-panel {
  width: 410px;
  min-width: 410px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #ded4c3;
  box-shadow: -7px 0 24px #5c513806;
  background: #fcf9f2;
  z-index: 12;
  animation: slide-in 0.25s ease;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 19px 7px 24px;
}
.panel-top .eyebrow {
  font-size: 7px;
  letter-spacing: 1.5px;
}
.profile-hero {
  display: flex;
  gap: 16px;
  padding: 10px 25px 21px;
  align-items: center;
}
.profile-hero .avatar {
  box-shadow: 0 0 0 1px #be835b;
  border: 3px solid #fffaf2;
}
.profile-hero h2 {
  font-size: 27px;
  margin-bottom: 8px;
  line-height: 1.08;
}
.profile-hero p {
  font-size: 10px;
  color: #73796a;
  line-height: 1.6;
}
.profile-hero div > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #8f917e;
  margin-top: 4px;
}
.perspective-button {
  margin: 0 25px 20px;
  border: 1px solid #dce0ce;
  border-radius: 5px;
  background: #edf0e4;
  color: #526b45;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: 10px;
  text-align: left;
}
.perspective-button svg:last-child {
  margin-left: auto;
}
.panel-tabs {
  display: flex;
  border-top: 1px solid #e9e2d6;
  border-bottom: 1px solid #e2dacd;
  padding: 0 23px;
  gap: 21px;
  min-height: 47px;
}
.panel-tabs button {
  border-bottom: 2px solid transparent;
  font-size: 11px;
  padding: 12px 0;
  color: #8c8c7c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-tabs button.active {
  color: #295139;
  border-bottom-color: #52704e;
}
.panel-tabs span {
  background: #e8eadc;
  padding: 2px 5px;
  font-size: 8px;
  border-radius: 4px;
}
.panel-body {
  padding: 0 25px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #d4cfbc transparent;
}
.panel-body section {
  padding: 23px 0;
  border-bottom: 1px solid #e9e2d4;
}
.panel-body h3 {
  font-size: 19px;
}
.life-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 15px;
  margin: 20px 0 0;
}
.life-facts dt {
  font-size: 9px;
  color: #949580;
  margin-bottom: 5px;
}
.life-facts dd {
  font-size: 11px;
  color: #4d5e49;
  margin: 0;
  overflow-wrap: anywhere;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-title > svg {
  color: #b4b89d;
}
.biography {
  font-size: 11px;
  line-height: 1.9;
  color: #737766;
  margin-top: 13px;
  white-space: pre-line;
}
.text-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #68805b;
}
.text-button:hover {
  color: #214d35;
  text-decoration: underline;
}
.biography + .text-button {
  margin-top: 10px;
}
.relative-preview {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.relative-preview button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  font-size: 9px;
  color: #828873;
}
.relative-preview button:hover .avatar {
  box-shadow: 0 0 0 2px #b7c3a4;
}
.panel-body .memory-invitation {
  background: #efefe3;
  margin-top: 23px;
  padding: 21px;
  border: 1px solid #e1e4d2;
  border-radius: 9px;
  text-align: center;
  position: relative;
}
.memory-invitation > svg {
  color: #81936d;
  margin-bottom: 10px;
}
.memory-invitation p {
  font-size: 10px;
  color: #858970;
  line-height: 1.8;
  margin: 10px 0 15px;
}
.memory-invitation .button {
  font-size: 10px;
  padding: 8px 13px;
  min-height: 33px;
  background: #f9faf1;
  border-color: #cdd6bd;
}
.panel-footer {
  display: flex;
  gap: 9px;
  padding: 17px 20px;
  border-top: 1px solid #e4ddcf;
  background: #fcf9f2;
}
.panel-footer .button {
  padding: 11px 12px;
  font-size: 10px;
  flex: 1;
}
.panel-open .canvas-heading {
  padding: 23px 25px 5px;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.panel-open .canvas-heading h1 {
  font-size: 24px;
}
.panel-open .focus-chip {
  padding: 3px 7px 3px 3px;
}
.panel-open .map-hint {
  display: none;
}
.panel-open .tree-legend {
  right: 22px;
  bottom: 85px;
  font-size: 8px;
}
.relative-row {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid #eee9dd;
}
.relative-row:last-child {
  border: 0;
}
.relative-row:hover strong {
  color: var(--orange);
}
.relative-row strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.relative-row small {
  display: block;
  font-size: 10px;
  color: #92937e;
  margin-top: 3px;
}
.relative-row > svg {
  margin-left: auto;
  color: #a4a48d;
}
.count {
  font:
    10px "Segoe UI",
    sans-serif;
  color: #919b7f;
  vertical-align: middle;
  margin-left: 6px;
}
.muted {
  color: #8f947f;
  font-size: 11px;
  margin-top: 12px;
}
.story-card {
  padding: 22px 0;
  border-bottom: 1px solid #e1dacb;
}
.story-card h3 {
  margin: 10px 0 13px;
}
.story-card p {
  font-size: 12px;
  color: #737d69;
  white-space: pre-line;
}
.story-card footer {
  margin-top: 17px;
  color: #90977d;
  font-size: 9px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.panel-body > .section-title {
  margin-top: 24px;
}
.story-card + .button {
  margin-top: 22px;
}
.empty-state {
  text-align: center;
  padding: 45px 0;
  color: #8b967c;
}
.empty-state h3 {
  margin: 20px 0 10px;
  color: #57724d;
}
.empty-state p {
  font-size: 12px;
}
.dropdown-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #94957f;
  padding: 13px 15px 9px;
}
.search-results,
.family-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  min-width: 270px;
  background: #fffcf5;
  border: 1px solid #ded6c5;
  border-radius: 10px;
  box-shadow: 0 15px 45px #48432c24;
  overflow: hidden;
  z-index: 50;
}
.search-results button,
.family-menu button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 15px;
  text-align: left;
  font-size: 12px;
}
.search-results button:hover,
.family-menu button:hover {
  background: #f0f0e3;
}
.search-results button small,
.family-menu button small {
  display: block;
  font-size: 10px;
  color: #989983;
  margin-top: 4px;
}
.search-results button > svg,
.family-menu button > svg:last-child {
  margin-left: auto;
}
.search-results p {
  font-size: 12px;
  padding: 15px;
  color: #8b8c77;
}
.family-menu .new-branch {
  border-top: 1px solid #e9e4d8;
  font-size: 11px;
  color: #668157;
}
.family-menu .new-branch svg {
  margin-left: 0;
}
.timeline-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 42px 8% 60px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #d4cfbc transparent;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
}
.timeline-header h1 {
  margin: 12px 0 9px;
  font-size: 34px;
}
.timeline-header p {
  font-size: 12px;
  color: #92917c;
}
.timeline-header .button {
  font-size: 11px;
}
.timeline-filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 27px 0 36px;
  position: relative;
}
.timeline-filters button {
  font-size: 10px;
  color: #868c76;
  border: 1px solid #e0dbca;
  border-radius: 20px;
  padding: 8px 15px;
  background: #fcfaf3;
}
.timeline-filters button.active {
  background: #e6ebdc;
  border-color: #acba99;
  color: #42613a;
}
.timeline-list {
  max-width: 780px;
  margin: auto;
}
.timeline-item {
  display: grid;
  grid-template-columns: 55px 36px 1fr;
  gap: 17px;
  position: relative;
  padding-bottom: 25px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 1px;
  top: 13px;
  bottom: -13px;
  left: 89px;
  background: #d2d7bc;
}
.timeline-item:last-child:before {
  bottom: 90%;
}
.timeline-year {
  font: 20px var(--serif);
  color: #7d8c66;
  padding-top: 17px;
  text-align: right;
}
.timeline-pin {
  width: 35px;
  height: 35px;
  position: relative;
  z-index: 1;
  background: #e9eddb;
  border: 4px solid #f7f4e9;
  border-radius: 50%;
  color: #728762;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 11px;
}
.timeline-card {
  padding: 21px 25px;
  border: 1px solid #ded7c3;
  border-radius: 10px;
  background: #fffdf5cc;
  box-shadow: 0 3px 8px #4c482508;
  text-align: left;
}
.timeline-card:hover {
  border-color: #a3b28a;
  background: #fffdf5;
}
.timeline-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a5ad91;
}
.timeline-card h3 {
  font-size: 24px;
  margin: 13px 0 8px;
}
.timeline-card > p {
  font-size: 12px;
  color: #838b73;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.timeline-person {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #8b927a;
  margin-top: 17px;
}
.timeline-leaves {
  position: absolute;
  right: -35px;
  top: 18px;
  width: 200px;
  opacity: 0.35;
  transform: rotate(-30deg);
}
.panel-open .timeline-view {
  padding: 30px 25px 50px;
}
.panel-open .timeline-header {
  align-items: flex-start;
  flex-direction: column;
}
.panel-open .timeline-header h1 {
  font-size: 28px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #26392d55;
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  animation: fade-in 0.16s ease;
}
.modal {
  width: 540px;
  max-width: 100%;
  max-height: calc(100dvh - 50px);
  overflow: auto;
  background: #fdfaf3;
  border: 1px solid #ece6d9;
  border-radius: 17px;
  padding: 28px;
  box-shadow: 0 30px 100px #18322440;
  scrollbar-width: thin;
  scrollbar-color: #d3ccb6 transparent;
}
.modal.wide {
  width: 630px;
}
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.modal-heading h2 {
  margin-top: 12px;
  font-size: 30px;
}
.modal-heading p {
  margin-top: 8px;
  font-size: 12px;
  color: #888e79;
}
.modal-heading .icon-button {
  flex-shrink: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}
.field label {
  font-size: 11px;
  font-weight: 500;
  color: #657359;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dad5c3;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fffdf8;
  color: #3f5638;
  font-size: 13px;
  outline-offset: 1px;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b2ad9b;
  font-size: 12px;
}
.field small {
  font-size: 10px;
  color: #989c83;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.editor-switch {
  margin: 2px 0 21px;
}
.editor-switch button {
  flex: 1;
  font-size: 11px;
  padding: 9px 8px;
}
.inline-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  background: #f1f1e7;
  border-radius: 6px;
  color: #899275;
  font-size: 10px;
  line-height: 1.7;
  margin: 15px 0;
}
.inline-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 19px;
  border-top: 1px solid #e5dfcf;
  margin-top: 24px;
}
.form-error {
  background: #f7e6dc;
  border: 1px solid #e6b899;
  color: #a75234;
  border-radius: 5px;
  padding: 11px;
  font-size: 12px;
}
.help-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.help-list > div {
  display: flex;
  gap: 16px;
  color: #799068;
}
.help-list svg {
  flex-shrink: 0;
  width: 23px;
  margin-top: 2px;
}
.help-list span {
  font-size: 12px;
  color: #838d74;
  line-height: 1.8;
}
.help-list strong {
  display: block;
  color: #395934;
  font-size: 13px;
  margin-bottom: 3px;
  font-weight: 500;
}
.prototype-note {
  padding: 16px;
  margin-top: 25px;
  background: #f1ede2;
  border: 1px solid #e4dbc7;
  border-radius: 8px;
  color: #8e866e;
}
.prototype-note strong {
  font-size: 12px;
  font-weight: 500;
}
.prototype-note p {
  font-size: 11px;
  margin-top: 7px;
}
.backup-summary {
  display: flex;
  justify-content: space-around;
  padding: 17px 0 22px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5decd;
}
.backup-summary > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  color: #929b7c;
}
.backup-summary strong {
  font: 25px var(--serif);
  color: #395b32;
}
.backup-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px 0;
  border-bottom: 1px solid #e6e0cf;
  width: 100%;
  color: #6d865a;
}
.backup-choice:hover {
  background: #f1f2e6;
}
.backup-choice span {
  flex: 1;
}
.backup-choice strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #3f6036;
}
.backup-choice small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #8c957a;
}
.reset-area {
  margin-top: 24px;
}
.confirmation {
  background: #f2eadc;
  padding: 16px;
  border: 1px solid #e2ccb0;
  border-radius: 7px;
  margin-top: 16px;
  font-size: 12px;
  color: #7f7154;
}
.confirmation p {
  margin: 8px 0 14px;
  font-size: 11px;
}
.confirmation .button {
  font-size: 11px;
  margin-right: 9px;
}
.confirmation .text-button {
  margin: 12px 0 0;
}
.button.danger {
  background: #ac5c40;
  color: white;
  border-color: #ac5c40;
}
.toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: min(590px, calc(100% - 30px));
  padding: 14px 17px;
  border: 1px solid #ccd4bd;
  border-radius: 9px;
  background: #fcfff6;
  box-shadow: 0 8px 35px #25391e24;
  z-index: 150;
  color: #526f42;
  font-size: 12px;
  animation: fade-in 0.2s;
}
.toast > svg {
  flex-shrink: 0;
}
.toast button {
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.storage-error {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fae7d7;
  color: #98563b;
  padding: 10px 25px;
  font-size: 12px;
  position: relative;
  z-index: 40;
}
.storage-error button {
  white-space: nowrap;
  text-decoration: underline;
}
.storage-error > svg {
  flex-shrink: 0;
}
@keyframes slide-in {
  from {
    transform: translateX(20px);
    opacity: 0.3;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1700px) {
  .main-header {
    padding: 0 48px;
    gap: 60px;
  }
  .brand > span {
    font-size: 34px;
  }
  .search-wrap {
    max-width: 520px;
  }
  .workspace-bar {
    padding: 0 48px;
  }
  .canvas-heading {
    padding-left: 48px;
    padding-right: 48px;
  }
  .canvas-heading h1 {
    font-size: 32px;
  }
  .person-panel {
    width: 450px;
    min-width: 450px;
  }
  .panel-body {
    padding-left: 30px;
    padding-right: 30px;
  }
  .panel-body h3 {
    font-size: 21px;
  }
  .biography {
    font-size: 12px;
  }
  .profile-hero h2 {
    font-size: 30px;
  }
  .panel-footer .button {
    font-size: 11px;
  }
}
@media (max-width: 1200px) {
  .main-header {
    gap: 20px;
    padding: 0 23px;
  }
  .brand > span {
    font-size: 26px;
  }
  .brand > svg {
    width: 35px;
  }
  .header-actions {
    gap: 9px;
  }
  .help-button {
    display: none;
  }
  .search-wrap {
    max-width: 340px;
  }
  .workspace-bar {
    padding: 0 24px;
  }
  .family-picker,
  .workspace-actions {
    min-width: 200px;
  }
  .workspace-actions {
    gap: 12px;
  }
  .tree-legend {
    display: none;
  }
  .person-panel {
    width: 365px;
    min-width: 365px;
  }
  .panel-open .canvas-heading h1 {
    font-size: 21px;
  }
  .panel-open .canvas-heading .eyebrow {
    font-size: 7px;
  }
  .panel-footer {
    padding: 14px 13px;
  }
  .panel-footer .button {
    font-size: 9px;
    padding: 10px 9px;
  }
  .profile-hero {
    padding-left: 21px;
    padding-right: 21px;
    gap: 13px;
  }
  .profile-hero h2 {
    font-size: 24px;
  }
  .panel-body {
    padding-left: 21px;
    padding-right: 21px;
  }
  .relative-preview {
    gap: 13px;
  }
  .panel-open .map-controls {
    left: 20px;
  }
  .timeline-view {
    padding-left: 6%;
    padding-right: 6%;
  }
}
@media (max-width: 900px) {
  .main-header {
    height: 77px;
    min-height: 77px;
    padding: 0 18px;
    gap: 20px;
  }
  .brand > span {
    font-size: 24px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.8px;
  }
  .brand > svg {
    width: 32px;
    height: 46px;
  }
  .brand {
    gap: 8px;
  }
  .header-actions .user-badge {
    display: none;
  }
  .add-main {
    padding: 10px !important;
  }
  .add-main span {
    display: none;
  }
  .search-wrap {
    padding: 10px;
    max-width: none;
  }
  .search-wrap input {
    font-size: 11px;
  }
  .workspace-bar {
    height: 74px;
    min-height: 74px;
    padding: 0 19px;
  }
  .family-picker {
    min-width: 0;
  }
  .family-button {
    gap: 8px;
  }
  .family-icon {
    height: 34px;
    width: 34px;
  }
  .family-button strong {
    font-size: 17px;
  }
  .family-button small {
    font-size: 7px;
  }
  .family-button > svg {
    margin-left: 3px;
  }
  .workspace-actions {
    min-width: 0;
  }
  .people-count {
    display: none;
  }
  .segmented button {
    padding: 8px 12px;
    font-size: 11px;
  }
  .backup-button {
    padding: 8px;
  }
  .backup-button span {
    display: none;
  }
  .canvas-heading {
    padding: 24px 24px 6px;
  }
  .canvas-heading h1 {
    font-size: 23px;
  }
  .canvas-heading .eyebrow {
    font-size: 7px;
  }
  .focus-chip {
    font-size: 9px;
  }
  .person-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 385px;
    min-width: 0;
    box-shadow: -10px 0 50px #28382223;
  }
  .panel-open .canvas-heading {
    padding: 24px 24px 6px;
    flex-direction: row;
  }
  .panel-open .canvas-heading h1 {
    font-size: 23px;
  }
  .map-hint {
    left: auto;
    right: 25px;
    transform: none;
  }
  .timeline-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .timeline-header h1 {
    font-size: 29px;
  }
  .timeline-header .button {
    margin-top: 6px;
  }
  .panel-open .timeline-view {
    padding: 35px 6% 50px;
  }
  .timeline-list {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .main-header {
    height: 70px;
    min-height: 70px;
    padding: 0 15px;
    gap: 12px;
  }
  .brand > span {
    font-size: 22px;
  }
  .brand > svg {
    width: 29px;
  }
  .brand small {
    font-size: 5.5px;
    letter-spacing: 1.4px;
  }
  .search-wrap {
    margin-left: auto;
    width: 37px;
    min-width: 37px;
    padding: 9px;
    border-color: transparent;
    background: none;
  }
  .search-wrap input {
    width: 0;
    padding: 0;
  }
  .search-wrap:focus-within {
    position: absolute;
    left: 15px;
    right: 66px;
    top: 15px;
    width: auto;
    background: #fffcf5;
    border-color: #d4cbb8;
    z-index: 2;
  }
  .search-wrap:focus-within input {
    width: 100%;
  }
  .search-wrap kbd {
    display: none;
  }
  .search-wrap > svg {
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: none;
  }
  .search-wrap input {
    position: absolute;
    inset: 0;
    cursor: pointer;
    width: 100%;
    color: transparent;
  }
  .search-wrap:focus-within input {
    position: static;
    cursor: text;
    color: var(--green);
  }
  .header-actions {
    gap: 0;
  }
  .add-main {
    height: 36px;
    min-height: 36px;
  }
  .workspace-bar {
    height: 101px;
    min-height: 101px;
    padding: 11px 16px 42px;
    gap: 8px;
  }
  .view-switch {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px;
  }
  .view-switch button {
    padding: 6px 18px;
    font-size: 10px;
  }
  .family-icon {
    width: 30px;
    height: 30px;
  }
  .family-button small {
    font-size: 6px;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
  }
  .family-button strong {
    font-size: 16px;
  }
  .family-button > svg {
    width: 12px;
  }
  .backup-button {
    min-height: 29px;
    padding: 6px;
  }
  .canvas-heading,
  .panel-open .canvas-heading {
    padding: 20px 18px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .canvas-heading h1,
  .panel-open .canvas-heading h1 {
    font-size: 22px;
    margin-top: 7px;
  }
  .canvas-heading .eyebrow {
    font-size: 6px;
    letter-spacing: 1.4px;
  }
  .focus-chip {
    font-size: 9px;
    padding: 3px 7px 3px 3px;
  }
  .map-controls {
    left: 16px;
    bottom: 19px;
    height: 38px;
  }
  .map-controls button {
    width: 37px;
  }
  .map-controls span {
    min-width: 43px;
  }
  .map-hint {
    font-size: 8px;
    right: 18px;
    bottom: 34px;
    gap: 4px;
  }
  .map-hint svg,
  .map-hint i,
  .map-hint span:last-child {
    display: none;
  }
  .canvas-leaves {
    width: 140px;
    height: 230px;
  }
  .canvas-leaves.left {
    left: -57px;
    top: -10px;
  }
  .canvas-leaves.right {
    right: -46px;
  }
  .local-status {
    font-size: 7px;
    height: 24px;
    min-height: 24px;
    gap: 4px;
  }
  .person-panel {
    width: 100%;
    border-left: 0;
  }
  .panel-top {
    padding-top: 9px;
  }
  .profile-hero {
    padding: 8px 23px 16px;
  }
  .profile-hero h2 {
    font-size: 28px;
  }
  .perspective-button {
    margin-bottom: 15px;
  }
  .panel-footer .button {
    font-size: 11px;
  }
  .panel-body {
    padding-left: 24px;
    padding-right: 24px;
  }
  .biography {
    font-size: 12px;
  }
  .relative-preview {
    gap: 22px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    padding: 23px 20px;
    border-radius: 13px;
  }
  .modal-heading h2 {
    font-size: 26px;
  }
  .modal-heading p {
    font-size: 11px;
  }
  .modal-actions .button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .form-grid {
    gap: 0 11px;
  }
  .field label {
    font-size: 10px;
  }
  .field input {
    font-size: 12px;
    padding: 10px 9px;
  }
  .field input[type="date"] {
    font-size: 11px;
  }
  .editor-switch button {
    font-size: 10px;
  }
  .timeline-view,
  .panel-open .timeline-view {
    padding: 29px 18px 40px;
  }
  .timeline-header h1 {
    font-size: 28px;
  }
  .timeline-header p {
    font-size: 11px;
  }
  .timeline-filters {
    gap: 6px;
    margin-top: 22px;
  }
  .timeline-filters button {
    font-size: 9px;
    padding: 7px 10px;
  }
  .timeline-item {
    grid-template-columns: 37px 25px 1fr;
    gap: 9px;
    padding-bottom: 18px;
  }
  .timeline-item:before {
    left: 58px;
  }
  .timeline-year {
    font-size: 16px;
  }
  .timeline-pin {
    width: 25px;
    height: 25px;
    border-width: 2px;
  }
  .timeline-pin svg {
    width: 12px;
  }
  .timeline-card {
    padding: 17px;
  }
  .timeline-card h3 {
    font-size: 21px;
  }
  .timeline-card > p {
    font-size: 11px;
  }
  .timeline-card .eyebrow {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .timeline-card-top > svg {
    width: 13px;
  }
  .timeline-person {
    font-size: 9px;
  }
  .backup-summary {
    gap: 10px;
  }
  .backup-summary > span {
    font-size: 9px;
  }
  .toast {
    bottom: 28px;
    font-size: 11px;
  }
  .storage-error {
    padding: 10px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .search-results {
    min-width: 240px;
  }
  .family-menu {
    min-width: 270px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.timeline-view {
  overflow-x: hidden;
}

@media (max-width: 600px) {
  .search-wrap input::placeholder {
    color: transparent;
  }
  .search-wrap:focus-within input::placeholder {
    color: #9a9589;
  }
  .profile-hero h2 {
    font-size: 26px;
  }
}

.canvas-order-review{padding:16px;border:1px solid #aeb493;border-radius:12px;background:#f8f5e9}.canvas-order-review h3{margin:0 0 10px}.timeline-design{white-space:nowrap}
/* Natural botanical artwork and a single, compact navigation bar. */
.main-header{height:88px;min-height:88px;padding:0 25px;gap:20px}.brand{min-width:210px;gap:8px}.brand>span{font-size:25px}.brand svg{width:47px}.brand small{font-size:7px;letter-spacing:2px}.family-picker{min-width:0;flex-shrink:0}.family-button{gap:8px}.family-button small{display:none}.family-button strong{font-size:12px}.family-icon{display:none}.search-wrap{min-width:120px;max-width:290px;flex:1}.search-wrap kbd{display:none}.view-switch{flex-shrink:0}.view-switch button{padding:10px 13px;font-size:12px}.header-actions{gap:10px;flex-shrink:0}.help-button{display:none}.add-main{font-size:12px;padding:11px 14px}.user-badge{width:36px;height:36px}.canvas-heading{position:absolute;left:24px;top:17px;padding:0;z-index:3;pointer-events:none}.canvas-heading>div:first-child{display:none}.focus-chip{pointer-events:auto;background:#faf8f0d9;font-size:11px}.botanical{object-fit:contain;opacity:.48;filter:none}.canvas-leaves{width:280px;height:280px;right:-40px;bottom:-55px;transform:none}.parent-line{stroke:#849074;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.branch-leaf{pointer-events:none}
/* Account entry */
.auth-loading{height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--green);background:#f8f5ed}.auth-page{min-height:100dvh;background:radial-gradient(ellipse at 14% 70%,#e7e8d775,transparent 55%),#f8f5ed;display:grid;grid-template-columns:1fr 470px;align-items:center;gap:80px;padding:65px max(6vw,30px);position:relative;overflow:auto}.auth-leaves{position:absolute;width:480px;left:-115px;bottom:-100px;opacity:.32;pointer-events:none}.auth-intro{position:relative;align-self:stretch;display:flex;justify-content:center;flex-direction:column}.auth-brand{font-family:Georgia,serif;font-size:38px;color:#204b38;margin-bottom:10px}.auth-brand em{font-size:27px;font-weight:normal}.auth-intro>.eyebrow{font-size:9px;letter-spacing:3px}.auth-intro h1{font-family:Georgia,serif;font-size:clamp(32px,3.7vw,56px);font-weight:normal;line-height:1.2;letter-spacing:-1px;margin:70px 0 22px;color:#284b37}.auth-intro>p{font-size:16px;line-height:1.9;color:#777968}.auth-quote{display:flex;gap:14px;align-items:center;margin-top:64px;color:#8b9279;font:italic 18px/1.5 Georgia,serif}.auth-card{position:relative;background:#fffcf5e6;border:1px solid #e6dfd1;border-radius:18px;box-shadow:0 15px 55px #6459420c;padding:38px}.auth-card>.eyebrow{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.2px}.auth-card h2{font:normal 29px/1.2 Georgia,serif;margin:20px 0 12px;color:#284b37}.auth-card>p{font-size:13px;line-height:1.7;color:#8a8578;margin-bottom:23px}.auth-tabs{margin-bottom:24px;display:flex}.auth-tabs button{flex:1}.auth-card .field,.account-content .field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px}.field label{font-size:12px;color:#606758}.auth-card input,.account-content input{width:100%;border:1px solid #ddd9ca;border-radius:7px;padding:12px;background:#fffdf9;font-size:14px;color:#284b37}.password-wrap{position:relative}.password-wrap input{padding-right:44px}.password-wrap button{position:absolute;right:9px;top:8px;padding:5px;color:#989987;background:none;border:0}.forgot-link{display:block;margin-left:auto;font-size:12px}.auth-submit{margin-top:22px;justify-content:space-between;padding:13px 17px}.auth-password-hint{display:block;font-size:11px;line-height:1.5;color:#8a8578}.auth-security{display:flex;justify-content:center;gap:6px;font-size:10px;color:#919582;margin-top:25px}.auth-local{display:block;text-align:center;margin-top:14px;font-size:10px;color:#a09a8c}.auth-back{margin-top:20px;font-size:12px}.auth-message{background:#eef2e8;color:#365639;padding:12px;border-radius:6px;font-size:13px;line-height:1.6}.account-summary{display:flex;gap:16px;align-items:center;background:#f0f1e8;padding:20px;border-radius:9px}.account-summary span,.account-summary small{display:block;margin-top:6px;font-size:12px;color:#7c806e}.account-tools{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 30px}.account-content h3{font:normal 22px Georgia,serif;margin:24px 0 17px}.admin-users{border-top:1px solid #e2dfd3;margin-top:30px}.admin-users h3{display:flex;gap:10px}.admin-users>p{font-size:12px;color:#888}.admin-user{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #e9e5d9;font-size:13px}.admin-user small{display:block;margin-top:4px;color:#8b8c7d}.admin-user em{font-size:11px;color:#7c8768}.legacy-button{font-size:12px;margin-top:20px;text-align:left}.confirmation{padding:15px;background:#f1eadc;font-size:13px;line-height:1.6}
/* Horizontal family chronicle, following the supplied reference. */
.horizontal-timeline{display:flex;flex:1;min-height:0;overflow:hidden;background:#f7f4eb}.timeline-sidebar{width:230px;flex-shrink:0;padding:32px 22px;border-right:1px solid #e2ddcf;position:relative;overflow:hidden;background:#faf7ef}.timeline-sidebar h3{font:normal 22px Georgia,serif;margin:0 0 30px}.event-filters{display:flex;flex-direction:column;gap:21px}.event-filters label{display:flex;align-items:center;gap:12px;font-size:13px;color:#65725a}.event-filters input{accent-color:#477048;width:16px;height:16px}.event-filters svg{color:#829473}.timeline-person-filter{display:block;font-size:12px;margin:34px 0 14px;color:#797c69}.timeline-person-filter select{margin-top:12px;width:100%;padding:10px 7px;border:1px solid #dad8c9;border-radius:5px;background:#fdfaf4;color:#727765;font-size:11px}.timeline-sidebar>.button{margin-bottom:13px;font-size:11px;padding:11px 8px;position:relative;z-index:1}.timeline-sidebar>img{position:absolute;width:235px;bottom:-25px;left:-100px;opacity:.36;pointer-events:none}.timeline-main{min-width:0;flex:1;display:flex;flex-direction:column;padding:0}.timeline-title{text-align:center;padding:30px 14px 18px;flex-shrink:0}.timeline-title h1{font:normal 31px Georgia,serif;color:#4b613f;margin:0 0 9px}.timeline-title p{font-size:12px;color:#96917f;margin:0}.timeline-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#c5cbb5 transparent}.timeline-track{position:relative;height:625px;min-height:625px}.timeline-axis{position:absolute;left:0;right:0;top:310px;height:5px;background:linear-gradient(90deg,#a0aa88,#8b9c72,#b2ad80)}.decade-tick{position:absolute;top:324px;font:12px Georgia,serif;color:#979882}.decade-tick i{display:block;position:absolute;height:12px;width:1px;background:#9ca583;top:-18px}.chronicle-event{position:absolute;width:166px;top:0}.chronicle-card{position:absolute;width:166px;height:227px;left:-45px;border:1px solid #dddcc9;border-radius:8px;background:#fcfaf3;box-shadow:0 3px 10px #6d704017;padding:18px 12px 12px;text-align:center;color:#56674b;cursor:pointer}.chronicle-card:hover,.chronicle-event.active .chronicle-card{border-color:#8c9b70;box-shadow:0 5px 20px #52643c20}.lane-0 .chronicle-card{top:34px}.lane-1 .chronicle-card{top:379px}.chronicle-card small{font-size:10px;color:#97927a}.chronicle-card h3{font:normal 16px/1.2 Georgia,serif;margin:9px 0 13px;height:38px;display:flex;align-items:center;justify-content:center}.event-symbol{position:absolute;top:-17px;left:calc(50% - 17px);width:34px;height:34px;border-radius:50%;background:#eef0df;border:1px solid #d7dec3;display:grid;place-items:center;color:#7b9062}.type-Partnerschaften{color:#ad8667;background:#f5ecdd}.type-Abschiede{color:#9a956f;background:#f3f0dc}.event-stem{position:absolute;left:37px;width:2px;background:#a8b394}.lane-0 .event-stem{top:261px;height:51px}.lane-1 .event-stem{top:313px;height:66px}.event-dot{position:absolute;left:30px;top:303px;background:#b7c5a5;border:3px solid #f7f4eb;box-shadow:0 0 0 1px #8fa37d;width:17px;height:17px;border-radius:50%;padding:0;cursor:pointer}.event-portrait{display:flex;justify-content:center;overflow:hidden;border-radius:5px;height:103px}.event-portrait .avatar{border-radius:5px!important}.event-photo{height:103px;border-radius:5px;background-image:url('../reference/timeline.png');background-repeat:no-repeat;background-size:1000px auto}.event-photo.wedding{background-position:-380px -274px}.event-photo.landscape{background-position:-646px -270px}.timeline-navigation{border-top:1px solid #e4dfd1;padding:18px 27px;display:flex;align-items:center;gap:24px;background:#f7f4eb;flex-shrink:0}.timeline-zoom{display:flex;gap:5px}.timeline-zoom button{width:33px;height:33px;display:grid;place-items:center;border:1px solid #d8d9c6;border-radius:5px;background:#fdfaf3;color:#718660}.time-range{flex:1;display:flex;align-items:center;gap:14px;position:relative;padding-bottom:19px;font:12px Georgia,serif;color:#878c75}.time-range input{flex:1;min-width:50px;accent-color:#91a273;height:5px}.time-range small{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:11px}.event-detail{width:320px;flex-shrink:0;border-left:1px solid #ddd8c8;padding:26px;position:relative;overflow:auto;background:#fcf9f0}.event-close{position:absolute;right:12px;top:10px;z-index:1;background:#fcf9f0db;border-radius:50%}.event-detail>.event-portrait,.event-detail>.event-photo{height:195px;margin:13px 0 23px}.event-detail>.event-portrait .avatar{width:100%!important;height:195px!important}.event-photo.large{background-size:1550px auto}.event-photo.wedding.large{background-position:-580px -416px}.event-photo.landscape.large{background-position:-980px -416px}.event-detail h2{font:normal 27px Georgia,serif;color:#516445;margin:0 0 10px}.event-date{font-size:12px;color:#939078}.event-tag{display:inline-flex;gap:7px;align-items:center;font-size:11px;background:#eceddd;color:#748563;padding:6px 10px;border-radius:4px;margin:12px 0}.event-story{font:15px/1.85 Georgia,serif;color:#85816e;white-space:pre-wrap}.event-detail h3{font:normal 17px Georgia,serif;margin:26px 0 12px}.event-people{display:flex;flex-direction:column;gap:10px;margin-bottom:25px}.event-people button{display:flex;align-items:center;gap:10px;text-align:left;font-size:12px;background:none;border:0;color:#637257}.event-people button>svg{margin-left:auto}.event-detail>.button{font-size:11px;padding:12px 7px}.timeline-empty{position:absolute;top:110px;left:100px;color:#8c9579}.panel-open .event-detail{display:none}
@media(max-width:1200px){.main-header{gap:12px;padding:0 18px}.brand{min-width:180px}.brand>span{font-size:22px}.family-button strong{max-width:110px;white-space:nowrap;overflow:hidden;display:block;text-overflow:ellipsis}.add-main span{display:none}.add-main{padding:11px}.timeline-sidebar{width:205px;padding:28px 16px}.event-detail{width:275px;padding:23px}.auth-page{gap:40px;grid-template-columns:1fr 430px}.auth-card{padding:30px}}
@media(max-width:850px){.family-button strong{max-width:90px}.brand{min-width:150px}.brand>svg{width:33px}.brand>span{font-size:20px}.brand small{font-size:5px;letter-spacing:1.5px}.view-switch button{font-size:0;gap:0;padding:9px}.search-wrap{min-width:50px}.timeline-sidebar{width:175px;padding:25px 12px}.event-detail{position:absolute;right:0;top:0;bottom:0;width:320px;z-index:9;box-shadow:-10px 0 40px #4b533022}.auth-page{grid-template-columns:1fr;max-width:none;padding:35px 24px;gap:30px}.auth-intro{align-items:center;text-align:center}.auth-intro h1{display:none}.auth-intro>p,.auth-quote{display:none}.auth-card{width:100%;max-width:460px;justify-self:center}.auth-leaves{width:330px}.timeline-title h1{font-size:25px}}
@media(max-width:600px){.main-header{height:72px;min-height:72px;gap:5px;padding:0 10px}.brand{min-width:117px;gap:4px}.brand>svg{width:25px}.brand>span{font-size:17px}.brand small{font-size:4px;letter-spacing:1px}.family-picker{width:26px;min-width:26px}.family-button{padding:0;gap:0}.family-button>span:not(.family-icon),.family-button>svg{display:none}.family-icon{display:grid;width:24px;height:30px;background:none;color:#6b7b60}.family-icon svg{width:18px}.search-wrap{margin:0;min-width:28px;width:28px;flex:0;padding:5px}.search-wrap>svg{width:17px}.view-switch{position:static;transform:none;padding:2px;margin-left:auto}.view-switch button{font-size:0;gap:0;padding:7px}.view-switch svg{width:16px}.header-actions{gap:5px}.add-main{padding:7px}.add-main svg{width:16px}.user-badge{width:29px;height:29px;font-size:11px}.canvas-heading{left:12px;top:12px}.focus-chip{font-size:10px;padding:5px 8px}.canvas-leaves{width:190px;height:190px}.family-menu{left:-120px}.horizontal-timeline{flex-direction:column}.timeline-sidebar{width:100%;padding:13px 15px;border-right:0;border-bottom:1px solid #e2ddcf;flex-shrink:0}.timeline-sidebar h3,.timeline-sidebar>img,.timeline-sidebar>.button,.timeline-person-filter{display:none}.event-filters{flex-direction:row;gap:12px;overflow:auto}.event-filters label{gap:4px;font-size:10px;white-space:nowrap}.event-filters label svg{display:none}.event-filters input{width:12px;height:12px;margin:0}.timeline-title{padding:20px 12px 13px}.timeline-title h1{font-size:24px}.timeline-title p{font-size:10px}.timeline-navigation{padding:13px 15px;gap:15px}.event-detail{width:min(350px,100%)}.auth-card{padding:27px 23px}.auth-card h2{font-size:26px}.auth-page{padding:27px 17px}.auth-brand{font-size:30px}.auth-security{font-size:9px}.account-tools .button{font-size:11px;padding:9px}.timeline-track{height:625px}.search-wrap:focus-within{right:45px;z-index:30}}
.focus-label{display:none}.event-photo.wedding{background-size:710px auto;background-position:-544px -51px}.event-photo.landscape{background-size:1640px auto;background-position:-925px -846px}.event-photo.wedding.large{background-size:1337px auto;background-position:-1025px -96px}.event-photo.landscape.large{background-size:3050px auto;background-position:-1720px -1572px}.time-range input{appearance:none;background:#d6ddc8;border-radius:4px}.time-range input::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;background:#8da271;cursor:grab}
.header-actions .user-badge{display:grid;place-items:center;flex-shrink:0}
@media(max-width:600px){.timeline-sidebar .event-filters{padding-right:25px}.timeline-sidebar>.button.primary{display:flex;position:absolute;right:5px;top:7px;width:28px;height:28px;padding:5px;font-size:0;gap:0}.timeline-sidebar>.button.primary svg{width:16px;flex-shrink:0}}
.timeline-main{min-height:0}.chronicle-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Refined foliage, line joins and account navigation. */
.parent-line{stroke:#7c8868;stroke-width:2.1;fill:none;stroke-linecap:round;stroke-linejoin:round}.branch-underlay{stroke:#f8f5ed;stroke-width:6;fill:none;stroke-linecap:round;stroke-linejoin:round}.canvas-leaves{width:140px!important;height:140px!important;opacity:.23!important}.canvas-leaves.left{left:auto!important;right:-25px!important;top:-25px!important;bottom:auto!important;transform:rotate(180deg)!important}.canvas-leaves.right{right:-20px!important;bottom:-25px!important}.botanical{opacity:.25}.timeline-sidebar>img{width:118px;left:-35px;opacity:.22}.time-range{padding-bottom:0}.timeline-scroll{cursor:grab;user-select:none;touch-action:pan-x pan-y}.timeline-scroll.dragging,.timeline-scroll.dragging *{cursor:grabbing!important}.timeline-scroll img{pointer-events:none}.decade-tick{transform:translateX(-50%);font-size:11px;color:#a0a18c;top:332px}.decade-tick i{left:50%;top:-18px;height:7px}.decade-tick.event-year{font-weight:bold;font-size:13px;color:#486242}.decade-tick.event-year i{height:13px;top:-23px;width:2px;background:#70835d}
.account-menu-wrap{position:relative}.user-badge{overflow:hidden;padding:0}.user-badge img,.menu-avatar img,.settings-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.user-badge>span{position:static!important;width:auto!important;height:auto!important;border:none!important;background:none!important;font-size:12px;color:#526a43}.account-dropdown{position:absolute;right:0;top:calc(100% + 15px);width:286px;background:#fffcf5;border:1px solid #e2dece;border-radius:12px;box-shadow:0 12px 45px #31472c26;padding:9px;z-index:80}.menu-user{display:flex;gap:11px;align-items:center;padding:13px 10px 18px}.menu-user strong{display:block;font-size:14px;color:#36533b}.menu-user small{display:block;font-size:11px;color:#8d8d7a;margin-top:5px;max-width:205px;overflow:hidden;text-overflow:ellipsis}.menu-avatar{width:38px;height:38px;border-radius:50%;background:#e9eddd;display:grid;place-items:center;flex-shrink:0;color:#73825d}.account-dropdown>button{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;padding:12px;border-radius:6px;text-align:left;font-size:13px;color:#5b6b50}.account-dropdown>button:hover,.account-dropdown>button:focus-visible{background:#edf0e3;outline:1px solid #cbd4bb}.account-dropdown>button>svg:last-child:not(:first-child){margin-left:auto}.account-dropdown hr{border:0;border-top:1px solid #e8e5d8;margin:6px}.settings-tabs{display:flex;gap:5px;border-bottom:1px solid #e5e0d1;margin-bottom:25px}.settings-tabs button{border:0;background:none;padding:11px 12px;color:#8c8b79;font-size:12px;border-bottom:2px solid transparent}.settings-tabs button.active{border-color:#58734a;color:#355435}.profile-photo-setting{display:flex;align-items:center;gap:22px;margin:0 0 28px}.settings-avatar{height:88px;width:88px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#e8ebdc;color:#72825d;font:29px Georgia,serif}.profile-photo-setting small{display:block;font-size:10px;color:#94927f;margin-top:9px}.profile-photo-setting .text-button{display:block;font-size:11px;margin-top:8px}.profile-photo-setting .button{font-size:12px}.account-content textarea{width:100%;border:1px solid #ddd9ca;border-radius:7px;padding:12px;background:#fffdf9;font:14px/1.6 inherit;color:#284b37;resize:vertical}.settings-note{font-size:12px;color:#8a8a77;line-height:1.6;margin:15px 0}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0!important;border:0!important}
@media(max-width:600px){.account-dropdown{right:-2px;width:280px}.settings-tabs button{padding:10px 8px;font-size:11px}.profile-photo-setting{gap:14px}.settings-avatar{width:72px;height:72px}}
.partner-switch{top:-35px;left:0;width:196px}.other-parent{bottom:auto;top:calc(100% + 17px)}.common-child .person-card{border-color:#dedaca;background:linear-gradient(125deg,#fffcf6,#f6f3ea)}

/* Fixed square bounds crop every portrait to a true circle. */
.settings-avatar{width:88px;height:88px;min-width:88px;min-height:88px;aspect-ratio:1;overflow:hidden;position:relative;flex:0 0 88px}.settings-avatar>img,.menu-avatar>img,.user-badge>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:cover;border-radius:50%}.menu-avatar,.user-badge{position:relative;overflow:hidden;aspect-ratio:1}
.reference-botanical{background-image:url('../reference/family.png');background-repeat:no-repeat;background-size:1536px 1024px;mix-blend-mode:multiply;pointer-events:none;opacity:1!important;transform:none!important}.reference-botanical.canvas-leaves.left{width:85px!important;height:128px!important;right:0!important;top:0!important;background-position:-1451px -80px;mask-image:linear-gradient(to right,transparent,#000 22%)}.reference-botanical.canvas-leaves.right{width:175px!important;height:149px!important;right:0!important;bottom:0!important;background-position:-1361px -875px;mask-image:linear-gradient(135deg,transparent 12%,#000 50%)}
.directory-choice{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;margin:20px 0;color:#53644a}.account-content .directory-choice input{width:16px;min-width:16px;margin-top:3px;accent-color:#637b50}.directory-choice small{display:block;color:#8a8a7b;font-size:11px;margin-top:5px}
.people-search{position:relative;display:flex;align-items:center;gap:12px;flex:1;min-width:130px;max-width:500px;margin:auto;padding:12px 15px;border:1px solid #ded7c8;border-radius:8px;color:#848774;background:#fffcf680}.people-search>input{border:0;outline:0;background:none;width:100%;min-width:0;font:13px inherit;color:#435b3d}.people-search>svg{flex-shrink:0}.clear-search{border:0;background:none;display:grid;place-items:center;color:#8a8c7b;padding:0}.people-search:focus-within{border-color:#9ca987;box-shadow:0 0 0 3px #71845d0b}.people-results{position:absolute;z-index:85;top:calc(100% + 12px);left:0;width:max(100%,420px);max-width:calc(100vw - 30px);border:1px solid #e1dacb;border-radius:13px;background:#fffcf6;box-shadow:0 17px 45px #35472924;overflow:hidden}.search-intro{padding:20px 20px 17px;border-bottom:1px solid #eee9df}.search-intro strong{display:block;font:20px Georgia,serif;color:#3f5a3d}.search-intro small{display:block;margin-top:8px;font-size:11px;color:#949080}.people-results [role=listbox]{max-height:min(510px,60vh);overflow:auto;padding:7px}.search-group-title{display:flex;align-items:center;gap:8px;padding:14px 12px 9px;font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#7c866a}.search-group-title span{margin-left:auto;font-size:10px;background:#efefe5;padding:3px 6px;border-radius:8px}.person-result{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:7px;background:none;color:#4d6444;text-align:left;cursor:pointer}.person-result:hover,.person-result[aria-selected=true]{background:#edf0e4}.person-result>span:nth-child(2){flex:1;min-width:0}.person-result strong{display:block;font-size:13px;font-weight:500}.person-result small{display:block;font-size:10px;color:#93907d;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-result>svg{flex-shrink:0;color:#9aa188}.directory-avatar{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border-radius:50%;background:#e8ecdf;color:#7e8d6a;overflow:hidden}.directory-avatar img{width:100%;height:100%;object-fit:cover}.search-empty{padding:5px 12px 12px;font-size:11px;line-height:1.6;color:#97917e}.search-bottom{padding:12px 20px;background:#f5f3ea;border-top:1px solid #e8e3d7;display:flex;justify-content:space-between;font-size:10px;color:#989481}.directory-preview{padding:20px}.directory-preview>img{display:block;width:64px;height:64px;object-fit:cover;border-radius:50%;margin-top:20px}.directory-preview h3{font:23px Georgia,serif}.directory-preview p{display:flex;gap:7px;font-size:13px;line-height:1.7;white-space:pre-wrap}.directory-preview small{font-size:11px;color:#9b947f}.tree-start{position:absolute;left:50%;top:90px;transform:translateX(-50%);width:min(370px,85%);z-index:4;text-align:center;color:#829071;pointer-events:none}.tree-start h2{font:26px Georgia,serif;margin:0 0 10px;color:#526a45}.tree-start p{font-size:12px;line-height:1.7}.tree-start button{pointer-events:auto;margin:auto}
@media(max-width:600px){.settings-avatar{width:72px;height:72px;min-width:72px;min-height:72px;flex-basis:72px}.people-search{min-width:27px;flex:1;padding:7px;gap:0;border-color:transparent;margin:0}.people-search>input{width:0;padding:0}.people-search:focus-within{position:absolute;left:12px;right:12px;top:12px;width:auto;max-width:none;background:#fffaf1;z-index:90;gap:10px;padding:13px}.people-search:focus-within>input{width:100%}.people-results{position:fixed;top:68px;left:12px;width:calc(100vw - 24px)}.tree-start{top:80px}.tree-start h2{font-size:22px}}

.reference-botanical.canvas-leaves.left{opacity:.65!important;mask-image:radial-gradient(ellipse at 100% 0%,#000 15%,#0009 45%,transparent 74%)}.reference-botanical.canvas-leaves.right{opacity:.7!important;mask-image:radial-gradient(ellipse at 100% 100%,#000 25%,#0008 53%,transparent 74%)}
.reference-botanical.canvas-leaves.left,.reference-botanical.canvas-leaves.right{transform:none!important}@media(max-width:600px){.people-search>input{width:100%;min-width:12px}.people-search:not(:focus-within)>input::placeholder{color:transparent}}


.node-add.side{left:-12px;top:calc(50% - 12px)}.tree-world{transition:transform .38s ease}.tree-canvas.dragging .tree-world{transition:none}.node-wrap{transition:left .38s ease,top .38s ease}.child-kind,.parent-kind{position:absolute;left:0;width:100%;text-align:center;font-size:9px;letter-spacing:.3px;color:#93977e;pointer-events:none}.child-kind{top:calc(100% + 17px)}.parent-kind{top:-30px}.child-family-group{position:absolute;min-height:66px;border-top:1px solid #d5dac6;border-radius:15px;padding:13px 10px;text-align:center;color:#8f967e;background:linear-gradient(#eef0e370,transparent)}.child-family-group.active{border-color:#9ba98b}.child-family-group>span{display:block;font-size:9px;letter-spacing:.7px;margin-bottom:7px;text-transform:uppercase}.child-family-group>button{display:inline-flex;align-items:center;gap:7px;border:0;background:#faf8efb8;border-radius:18px;padding:5px 9px;margin:2px;color:#687b58;font-size:11px}.child-family-group>button:hover{background:#e6ecd9;color:#345033}.child-family-group>small{font-size:10px}.relationship-editor{padding-top:10px;border-top:1px solid #e4e0d2;margin-top:15px}.relationship-editor h3{font:20px Georgia,serif}.relation-field{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;margin:12px 0}.relation-field select{max-width:230px;padding:9px;border:1px solid #d9d7c6;border-radius:6px;background:#fcfaf2;color:#53684a}.relationship-editor>small{font-size:11px;line-height:1.6;color:#8a917c}@media(prefers-reduced-motion:reduce){.tree-world,.node-wrap{transition:none}}@media(max-width:600px){.relation-field{align-items:stretch;flex-direction:column;gap:5px}.relation-field select{max-width:none}}

.partnership-badge{position:absolute;width:42px;height:42px;border:1px solid #d7cbb9;border-radius:50%;background:#faf7ef;display:grid;place-items:center;color:#b77453;z-index:3;box-shadow:0 2px 6px #5f624317;cursor:pointer}.partnership-badge span{font:26px Georgia,serif}.partnership-badge:hover{box-shadow:0 0 0 4px #c4845821;transform:scale(1.08)}.partnership-badge.separated,.partnership-badge.divorced,.partnership-badge.widowed{color:#92937b;background:#f6f3eb}.relationship-people{display:flex;justify-content:space-between;gap:20px;font:19px Georgia,serif;color:#526847;margin:5px 0 24px}.relationship-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.relationship-options button{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #ded9ca;border-radius:10px;background:#fcfaf3;padding:16px 8px;color:#89917b;font-size:11px}.relationship-options b{font:32px Georgia,serif;color:#b88465}.relationship-options button.active{background:#eef1e3;border-color:#92a27d;color:#395936;box-shadow:0 0 0 1px #92a27d}.open-relationship{display:flex;align-items:center;gap:10px;padding:14px 0;font-size:12px;color:#637855}.open-relationship input{width:16px;height:16px;accent-color:#7a9061}.open-relationship b{font:26px Georgia,serif;color:#ad7f5d}.open-relationship small{display:block;font-size:10px;color:#99937e;margin-top:4px}.relationship-preview{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#f4f1e6;border-radius:8px;padding:15px;margin:15px 0 24px;color:#6c7d57;font-size:13px}.relationship-preview b{font:26px Georgia,serif;color:#b07855}.relationship-preview small{width:100%;font-size:10px;color:#99917d}

.uploaded-avatar{position:relative!important;display:block!important;overflow:hidden;border-radius:50%!important;flex-shrink:0}.uploaded-avatar>img{display:block;width:100%;height:100%;object-fit:cover}.photo-badge{position:absolute;right:8px;bottom:6px;display:flex;align-items:center;gap:3px;padding:4px 6px;border:1px solid #e0ddce;border-radius:12px;background:#faf8ef;color:#7c8b69;font-size:9px;z-index:5}.person-card .person-text{padding-bottom:12px}.node-focus{left:8px;right:auto;bottom:5px;width:72px;height:20px;gap:4px;padding:0 6px;border:1px solid #dedfce;border-radius:10px;font-size:9px;background:#faf8ef;opacity:1;z-index:5}.node-focus:hover{background:#e7ecde;color:#405b3a}.node-wrap:not(.focal) .person-card>.avatar{transform:translateY(-5px)}.child-kind{top:calc(100% + 25px);line-height:14px;background:transparent}.child-family-group{border:0!important;border-radius:0;background:none;padding:2px 8px;min-height:34px}.child-family-group>button{margin:3px;padding:4px 8px;color:#829074;border:1px solid #e5e4d6;background:#faf8efb8}.child-family-group>small{display:block;margin-top:4px}.parent-kind{top:-35px}.gallery-backdrop{z-index:250!important}.photo-gallery{width:min(1040px,calc(100vw - 32px));max-height:90dvh;overflow:auto;background:#fcf9f1;border:1px solid #e2dccd;border-radius:18px;box-shadow:0 20px 85px #24352240;padding:30px;color:#54694a;outline:none}.gallery-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.gallery-heading h2{font:30px Georgia,serif;margin:12px 0 7px}.gallery-heading p{font-size:12px;color:#8b8e7a}.gallery-heading .eyebrow{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:1.5px}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e6e1d2;margin-top:22px;padding:20px 0;font:18px Georgia,serif}.gallery-toolbar .button{font:12px inherit}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:17px}.gallery-tile{position:relative;overflow:hidden;background:#f8f5eb;border:1px solid #e3dece;border-radius:10px;padding:0;text-align:left;color:#566a48}.gallery-tile>img{width:100%;height:185px;object-fit:cover;display:block}.tile-caption{display:block;padding:12px;font-size:12px;line-height:1.5}.tile-caption small{display:block;color:#94917d;font-size:10px;margin-top:4px}.avatar-tag{position:absolute;top:10px;left:10px;display:flex;align-items:center;gap:4px;background:#fffdf0ee;padding:5px 8px;border-radius:12px;font-size:9px}.gallery-empty{text-align:center;padding:55px 20px;color:#9a9d85}.gallery-empty h3{font:23px Georgia,serif;color:#70805e}.gallery-empty p{font-size:13px}.gallery-empty small{font-size:11px}.photo-detail{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:25px;margin-top:20px}.photo-stage{position:relative;display:grid;place-items:center;background:#eeece2;border-radius:12px;min-height:340px;overflow:hidden}.full-photo{display:block;width:100%;height:100%;max-height:58vh;object-fit:contain}.photo-prev,.photo-next{position:absolute;top:calc(50% - 19px);width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;background:#fffcf3e8;color:#5f7451}.photo-prev{left:10px}.photo-next{right:10px}.photo-controls .field{display:flex;flex-direction:column;gap:8px;font-size:12px;margin-bottom:17px}.photo-controls input:not([type=range]),.photo-controls textarea,.account-content select{width:100%;padding:10px;border:1px solid #dcd8c8;border-radius:6px;background:#fffdf7;color:#526948;font:13px inherit}.photo-controls .button{margin:9px 0;font-size:12px}.photo-controls p{font-size:12px;line-height:1.7;color:#91937e}.photo-controls h3{font:21px Georgia,serif}.remove-photo{display:flex;align-items:center;gap:7px;font-size:11px;margin-top:20px;color:#a28c75}.crop-preview{width:min(310px,85%);aspect-ratio:1;overflow:hidden;border-radius:50%;border:3px solid #fffcf1;box-shadow:0 0 0 1px #c5cdb6}.crop-preview canvas{display:block;width:100%;height:100%}.crop-slider{display:flex;flex-direction:column;gap:9px;font-size:12px;margin:20px 0}.crop-slider input{width:100%;accent-color:#7b9064}
@media(max-width:650px){.photo-gallery{padding:22px 16px;width:calc(100vw - 20px)}.gallery-heading h2{font-size:25px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-tile>img{height:145px}.gallery-toolbar>span{font-size:14px}.gallery-toolbar .button{padding:10px;font-size:11px}.photo-detail{grid-template-columns:1fr}.photo-stage{min-height:260px}.full-photo{max-height:45vh}.photo-controls .button{font-size:12px}}

/* Gallery themes stay separate from the original photographs. */
.gallery-topics{padding:14px 0;border-bottom:1px solid #dfd8c6;margin-bottom:12px}
.topic-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.topic-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #d7d9c8;border-radius:20px;background:#faf8f0;color:#53614b;padding:7px 12px;cursor:pointer;font:inherit;font-size:12px}
.topic-chip small{opacity:.7}.topic-chip.active{background:#52694f;color:#fff;border-color:#52694f}
.new-topic-form{display:flex;align-items:end;gap:12px;margin:12px 0}.new-topic-form .field{flex:1;margin:0}.new-topic-form button{flex-shrink:0}
.portrait-hint{font-size:12px;line-height:1.6;color:#68715c;margin:16px 0 8px}
@media(max-width:600px){.new-topic-form{align-items:stretch;flex-direction:column}.topic-tabs{max-height:160px;overflow:auto}}

.person-card .person-text{flex:1;min-width:0}.person-card .person-text small{white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.3;margin-top:5px}
.node-wrap.long-name .person-text strong{font-size:13px;line-height:1.2}
.deceased-mark{position:absolute;right:8px;top:5px;font:18px Georgia,serif;color:#686c61;line-height:1}
.deceased .person-text small{color:#62685d;font-weight:500}

.relation-biological .parent-line{stroke:#7c8868;stroke-dasharray:none}
.relation-adoptive .parent-line{stroke:#697f83;stroke-dasharray:10 5}
.relation-foster .parent-line{stroke:#9a8164;stroke-dasharray:9 4 2 4}
.relation-social .parent-line{stroke:#8b8195;stroke-dasharray:1 5;stroke-linecap:round}
.relation-mixed .parent-line{stroke:#858675;stroke-dasharray:11 4 2 4 2 4}
.deceased-branch .parent-line{stroke:#535853;stroke-width:2.4}
.deceased-leaf{filter:grayscale(1) brightness(.65)}
.node-wrap.deceased .person-card{background:linear-gradient(125deg,#e9e9e4,#d9dbd6);border-color:#959c93;box-shadow:0 3px 7px #3e473c18}
.node-wrap.deceased .person-card .avatar{filter:grayscale(1);background-color:#d4d8d0;color:#5f695c;box-shadow:0 0 0 1px #a7afa1}
.node-wrap.deceased .person-text strong,.node-wrap.deceased .deceased-mark{color:#50594d}
.node-wrap.deceased.focal .person-card{border-color:#697662;box-shadow:0 0 0 2px #69766230}

.profile-invitation{margin:0 0 22px;padding:15px;border:1px solid #dce0d0;border-radius:10px;background:#f4f5eb}.profile-invitation p,.profile-invitation small{font-size:12px;line-height:1.6}.profile-invitation .field{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:12px}.profile-invitation input{width:100%;min-width:0;padding:9px;border:1px solid #d2d6c5;border-radius:5px;background:#fffdf7}.invitation-link .button{margin:6px 5px 8px 0}.invitation-link small{display:block}.private-contact{overflow-wrap:anywhere;padding:12px 0}.private-contact p{margin:5px 0}

/* Compact invitation disclosure, independent of generic panel section padding. */
.panel-body .profile-invitation{display:block;margin:0 0 18px;padding:0;border:1px solid #dce0d0;border-radius:9px;background:#f4f5eb;overflow:hidden}
.profile-invitation summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;font:16px Georgia,serif;list-style:none}
.profile-invitation summary::-webkit-details-marker{display:none}.profile-invitation summary span{font:11px system-ui;color:#738366}.profile-invitation summary span:after{content:' +';font-size:15px}.profile-invitation[open] summary span:after{content:' −'}
.profile-invitation .invitation-content{padding:0 14px 14px}.profile-invitation p{margin:0 0 12px;font-size:12px;line-height:1.55}.profile-invitation .field{margin:10px 0}.profile-invitation input{box-sizing:border-box;max-width:100%}.profile-invitation .button.full{min-height:36px;padding:9px 12px;font-size:12px}
.branch-label{font:10px system-ui,sans-serif;fill:#7d8272;paint-order:stroke;stroke:#f8f5ed;stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.relation-stem-adoptive{stroke:#697f83;stroke-dasharray:10 5}.relation-stem-foster{stroke:#9a8164;stroke-dasharray:9 4 2 4}.relation-stem-social{stroke:#8b8195;stroke-dasharray:1 5}.relation-stem-mixed{stroke:#858675;stroke-dasharray:11 4 2 4 2 4}.deceased-stem{stroke:#535853;stroke-width:2.4}

.node-wrap .deceased-mark{right:auto;left:7px;top:4px}.node-wrap .focal-dot{right:auto;left:8px;top:8px}

.gallery-profile-tools{display:flex;align-items:center;gap:18px;margin:18px 0;padding:16px;border:1px solid #dce0cd;background:#f3f5eb;border-radius:12px}.gallery-profile-circle{width:76px;height:76px;aspect-ratio:1;flex-shrink:0;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e2e7d9;color:#849277}.gallery-profile-circle img{width:100%;height:100%;object-fit:cover}.gallery-profile-tools strong{font:19px Georgia,serif}.gallery-profile-tools p{margin:6px 0 12px;font-size:12px;color:#818b75}.portrait-actions{display:flex;gap:8px;flex-wrap:wrap}.portrait-actions .button{font-size:12px;padding:9px 11px}.gallery-photo-item{min-width:0}.gallery-photo-item .gallery-tile{width:100%;display:block}.gallery-crop-action{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:10px 5px;margin-top:5px;border:1px solid #dbe0ce;border-radius:7px;background:#f3f5ea;color:#526b46;font-size:11px;cursor:pointer}.interactive-crop{touch-action:none;cursor:grab;user-select:none}.interactive-crop:active{cursor:grabbing}.profile-portrait-button{margin:0 24px 12px;justify-content:center;font-size:12px}.gallery-topics[hidden]{display:none}
@media(max-width:600px){.gallery-profile-tools{align-items:flex-start;padding:12px;gap:12px}.gallery-profile-circle{width:55px;height:55px}.gallery-profile-tools strong{font-size:17px}.portrait-actions{flex-direction:column;align-items:stretch}}

.visibility-settings{border:1px solid #d8decd;border-radius:9px;padding:15px;margin:18px 0;background:#f4f6ed}.visibility-settings legend{font:17px Georgia,serif;padding:0 6px}.visibility-settings .field{display:flex;flex-direction:column;gap:7px}.visibility-settings select{width:100%;padding:9px;border:1px solid #d4dac8;border-radius:5px;background:#fffdf7;color:#53684a}.visibility-settings p{font-size:11px;line-height:1.6;color:#7c8771}.visibility-side{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.5}.visibility-side input{width:auto;flex-shrink:0;margin-top:3px}.node-wrap.anonymized .person-card{background:#edece6;border-style:dashed;border-color:#b7baae}.anonymous-avatar{background:#dfe1d8!important;color:#8a9381!important}.node-add[hidden]{display:none}

.deceased-choice{display:flex!important;align-items:center;gap:9px;margin:0 0 10px!important;min-height:24px}.deceased-choice input{width:17px!important;height:17px!important;margin:0;accent-color:#78866d}.profile-invite-button{margin:0 24px 12px;justify-content:center;font-size:12px;background:#edf2e4;border-color:#cdd8bd;color:#506743}

/* One person sidebar for viewing and editing. */
.person-panel .panel-tabs{display:flex;flex-wrap:nowrap;gap:12px;padding:0 18px;flex-shrink:0;overflow:visible}
.person-panel .panel-tabs button{justify-content:center;padding:14px 2px;min-width:0;flex:1 0 auto;white-space:nowrap;gap:5px}.person-panel .panel-tabs button svg{flex-shrink:0}
.person-panel .panel-top,.person-panel .profile-hero,.person-panel .perspective-button,.person-panel .profile-portrait-button{flex-shrink:0}
.embedded-person-editor{padding:20px 0 0}
.embedded-person-editor .form-grid{grid-template-columns:minmax(0,1fr)}
.embedded-person-editor input,.embedded-person-editor select,.embedded-person-editor textarea{min-width:0;max-width:100%;box-sizing:border-box}
.embedded-person-editor[data-section="Bearbeiten"]>.visibility-settings,.embedded-person-editor[data-section="Bearbeiten"]>.relationship-editor{display:none}
.embedded-person-editor[data-section="Sichtbarkeit"]>:not(.visibility-settings):not(.modal-actions):not(.form-error){display:none}
.embedded-person-editor[data-section="Familie"]>:not(.relationship-editor):not(.modal-actions):not(.form-error){display:none}
.embedded-person-editor .modal-actions{position:sticky;bottom:-24px;background:#fcf9f2;padding:14px 0;display:flex;flex-wrap:wrap;gap:8px;z-index:2}
.embedded-person-editor .relation-field{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.person-panel .profile-invitation{border-color:#53754e}
.person-panel .profile-invitation>summary{background:#41663d;color:#fff;border-radius:7px;padding:13px 14px}
.person-panel .profile-invitation>summary span{color:#e2ecd9}
.person-panel .profile-invitation>summary:hover{background:#345430}
.embedded-gallery .photo-gallery{width:100%;max-width:100%;max-height:none;overflow:visible;box-shadow:none;border:0;border-radius:0;padding:18px 0;background:transparent}
.embedded-gallery .gallery-heading h2,.embedded-gallery .gallery-heading .eyebrow,.embedded-gallery .gallery-heading>.icon-button{display:none}
.embedded-gallery .gallery-heading{margin-bottom:10px}
.embedded-gallery .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.embedded-gallery .photo-detail{display:flex;flex-direction:column}
.embedded-gallery .gallery-profile-tools{display:flex;flex-wrap:wrap;gap:12px}
.embedded-gallery .gallery-toolbar{flex-wrap:wrap;gap:10px}
.embedded-gallery .photo-controls{min-width:0;padding:16px 0}
.embedded-gallery .photo-stage{min-height:0}
.embedded-gallery .crop-preview{width:100%;max-width:300px}
.embedded-gallery .portrait-actions{flex-wrap:wrap}

.node-add.partner-left{left:-12px;top:calc(50% - 12px)}
.node-add.partner-right{left:auto;right:-12px;top:calc(50% - 12px)}

.parent-selection{margin:12px 0 18px}.parent-selection>p,.parent-selection>small{font-size:12px;line-height:1.6;color:#73816b}.parent-selection>small{display:block;margin-top:8px}.parent-choice{border:1px solid #dddccb;border-radius:8px;padding:10px;margin:9px 0;background:#faf8f0}.parent-choice.chosen{border-color:#9cac89;background:#f0f3e8}.parent-choice>label{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13px}.parent-choice input[type=checkbox],.new-parent-choice input{width:17px;height:17px;flex-shrink:0;accent-color:#52704e}.parent-choice small{display:block;font-size:10px;color:#7b846e;margin-top:3px}.parent-choice select{margin:9px 0 0 27px;width:calc(100% - 27px);padding:8px;border:1px solid #d4dac8;border-radius:5px;background:#fffdf7;color:#53684a}.parent-selection>input{width:100%;box-sizing:border-box;padding:11px;border:1px solid #d4dac8;border-radius:6px;background:#fffdf7}.new-parent-choice{display:flex;align-items:center;gap:9px;font-size:13px;margin:13px 0}.child-parent-section{margin:18px 0;padding:16px;border:1px solid #d8decd;border-radius:9px}

.tree-view-switch{flex-shrink:0;gap:2px}.tree-view-switch button{padding:9px;display:flex;align-items:center;justify-content:center}.tree-view-switch button.active{background:#dfe8d7;color:#345a37}.tree-view-switch button:focus-visible{outline:2px solid #547347;outline-offset:2px}@media(max-width:850px){.main-header{flex-wrap:wrap;height:auto;min-height:78px}.tree-view-switch{margin-left:auto}.main-header .people-search{min-width:140px}}

@media(max-width:850px){.main-header{flex-wrap:nowrap;gap:7px;padding-left:12px;padding-right:12px}.main-header .brand{min-width:0;flex-shrink:0}.main-header .brand>span{display:none}.main-header .people-search{width:auto;min-width:90px;flex:1}.tree-view-switch{margin-left:0}.tree-view-switch button{padding:7px}.main-header .header-actions{gap:7px}}

.timeline-period{font:12px Georgia,serif;color:#7e876f;white-space:nowrap}.timeline-nav-hint{font-size:11px;color:#8b917e;margin-left:auto}.timeline-navigation{padding:12px 22px;gap:16px}.decade-tick.decade-year{font-size:13px;color:#697a5d}.decade-tick.decade-year i{height:12px;top:-22px}.decade-tick.event-year{color:#486242;font-weight:bold}.timeline-scroll{scrollbar-width:thin}@media(max-width:700px){.timeline-nav-hint{display:none}}

.child-link-choices{padding:15px;margin:16px 0;border:1px solid #b6c4a4;background:#f0f3e8;border-radius:9px}.child-link-choices h3{font:20px Georgia,serif;margin:0 0 8px}.child-link-choices p,.child-link-choices>small{font-size:12px;line-height:1.6;color:#6f7d62}.child-link-choice{display:flex;align-items:center;gap:10px;padding:10px 0;cursor:pointer}.child-link-choice input{width:17px;height:17px;accent-color:#52704e;flex-shrink:0}.child-link-choice span{font-size:13px}.child-link-choices>small{display:block;margin-top:8px}

.person-panel{width:700px;min-width:700px;max-width:100%}@media(max-width:1100px){.person-panel{position:absolute;right:0;top:0;bottom:0;width:min(700px,100%);min-width:0;box-shadow:-10px 0 50px #28382223}}

.profile-avatar-edit{position:relative;display:block;width:84px;height:84px;min-width:84px;flex-shrink:0;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}.profile-avatar-edit .avatar{width:84px!important;height:84px!important;aspect-ratio:1;border-radius:50%!important}.profile-hero .profile-avatar-overlay{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;background:#233b32a6;color:#fff;opacity:0;transition:opacity .15s ease;pointer-events:none;margin:0}.profile-avatar-edit:hover .profile-avatar-overlay,.profile-avatar-edit:focus-visible .profile-avatar-overlay{opacity:1}.profile-avatar-edit:focus-visible{outline:2px solid #52704e;outline-offset:5px}@media(hover:none){.profile-hero .profile-avatar-overlay{inset:auto 0 0 auto;width:26px;height:26px;opacity:1;background:#52704e;border:2px solid #fcf9f2}.profile-avatar-overlay svg{width:14px;height:14px}}

/* Comfortable reading sizes while retaining the quiet, compact visual style. */
.person-panel{width:700px;min-width:700px}
.person-panel .panel-tabs{gap:12px}
.person-panel .panel-tabs button{font-size:13px;color:#626f59;gap:6px}
.person-panel .panel-tabs button.active{color:#295139}
.person-panel .panel-tabs span{font-size:11px}
.person-panel .profile-hero p,.person-panel .profile-hero div>span{font-size:13px;color:#65705b}
.person-panel .perspective-button{font-size:13px;line-height:1.5}
.person-panel .panel-body h3{font-size:22px}
.person-panel .life-facts dt{font-size:12px;color:#737b68;margin-bottom:6px}
.person-panel .life-facts dd{font-size:15px;line-height:1.55}
.person-panel .biography,.person-panel .memory-invitation p,.person-panel .muted,.person-panel .story-card p{font-size:15px;line-height:1.75;color:#606e56}
.person-panel .relative-preview button{font-size:12px;color:#647258}
.person-panel .relative-row strong{font-size:15px}.person-panel .relative-row small{font-size:12px;color:#737b68}
.button,.panel-footer .button,.modal .button,.account-content .button{font-size:14px;line-height:1.45}
.text-button,.person-panel .text-button,.profile-photo-setting .text-button{font-size:13px;line-height:1.5}
.field label,label.field,.relation-field,.visibility-side,.new-parent-choice,.child-link-choice span,.parent-choice>label{font-size:14px}
.field input,.field select,.field textarea,.account-content textarea,.visibility-settings select,.parent-choice select,.parent-selection>input{font-size:15px;line-height:1.5}
.field small,.inline-note,.settings-note,.visibility-settings p,.child-link-choices p,.child-link-choices>small,.parent-selection>p,.parent-selection>small,.parent-choice small,.profile-photo-setting small{font-size:12px;line-height:1.65;color:#6d7861}
.modal-heading p,.profile-invitation .invitation-content p,.private-contact p{font-size:14px;line-height:1.65}
.account-dropdown>button,.settings-tabs button{font-size:14px}.menu-user small{font-size:12px;color:#6d7861}
.main-header .people-search input{font-size:15px}.person-result strong{font-size:15px}.person-result small,.search-intro small,.search-empty,.search-bottom{font-size:12px}
.main-header .view-switch button,.main-header .add-main{font-size:14px}.focus-chip{font-size:12px}
.event-filters label{font-size:14px}.timeline-person-filter{font-size:13px}.timeline-person-filter select{font-size:13px}.timeline-title p,.timeline-period,.timeline-nav-hint{font-size:13px}
.chronicle-card small{font-size:12px}.chronicle-card h3{font-size:17px}.decade-tick{font-size:13px}.decade-tick.event-year,.decade-tick.decade-year{font-size:14px}
.gallery-toolbar,.topic-chip,.gallery-crop-action,.portrait-actions .button{font-size:13px}.photo-controls p,.gallery-profile-tools p{font-size:14px;line-height:1.6}
@media(max-width:1100px){.person-panel{width:min(700px,100%);min-width:0}.main-header .view-switch button,.main-header .add-main{font-size:0;gap:0}.main-header .add-main>span{display:none}}
@media(max-width:600px){.person-panel .panel-tabs{gap:14px;padding:0 15px}.person-panel .panel-tabs button{flex:0 0 auto}.event-filters label{font-size:12px}}

.person-card .person-age{position:absolute;top:6px;right:9px;font:500 11px/1.3 Arial,sans-serif;color:#657458;white-space:nowrap}.node-wrap.deceased .person-age{color:#586157}.person-card:has(.person-age) .person-text{padding-top:12px}

.story-photo-picker{border:1px solid #d8decd;border-radius:9px;padding:16px;margin:20px 0}.story-photo-preview{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:7px;margin:12px 0}.memory-photo{display:block;width:100%;height:103px;object-fit:cover;border-radius:5px}.event-detail>.memory-photo.large{height:195px;object-fit:contain;margin:13px 0 23px}

.birth-date{display:inline-flex;align-items:center;gap:4px;vertical-align:baseline;white-space:nowrap}.birth-date svg{flex-shrink:0;vertical-align:middle}.person-card .birth-date{font:inherit;color:inherit}.profile-hero p .birth-date{display:inline-flex;margin:0;font:inherit;color:inherit}

/* Event cards and their solid icon circles paint above connector stems. */
.chronicle-event .event-stem{z-index:0}.chronicle-event .chronicle-card{z-index:1}.chronicle-event .event-symbol{z-index:2}.chronicle-event .event-dot{z-index:2}

/* Keep portrait tools compact; generic panel section spacing must not remove the inset. */
.photo-gallery .gallery-profile-tools{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:16px;width:fit-content;max-width:100%;box-sizing:border-box;margin:0 0 18px;padding:16px;border:1px solid #dce0cd;border-radius:10px}
.photo-gallery .gallery-profile-circle{width:64px;height:64px}
.photo-gallery .gallery-profile-tools>div:last-child{min-width:0}
.photo-gallery .gallery-profile-tools strong{display:block;font-size:19px;line-height:1.25}
.photo-gallery .gallery-profile-tools p{margin:4px 0 10px;line-height:1.45}
.photo-gallery .portrait-actions{flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
.photo-gallery .portrait-actions .button{min-height:38px;padding:8px 12px}
@media(max-width:480px){.photo-gallery .gallery-profile-tools{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:12px}.photo-gallery .gallery-profile-circle{width:48px;height:48px}.photo-gallery .portrait-actions .button{white-space:normal;text-align:left}}

/* Compact file-folder tabs: the selected tab opens visually into the panel. */
.person-panel .panel-tabs{gap:4px;padding:9px 12px 0;min-height:48px;align-items:flex-end;border-top:0;border-bottom:1px solid #d8d2c3;background:#f1f0e7}
.person-panel .panel-tabs button{position:relative;flex:0 0 auto;gap:5px;min-height:39px;padding:9px 10px;margin-bottom:-1px;border:1px solid #d8d2c3;border-radius:8px 8px 0 0;background:#eaece1;color:#65705d;line-height:1.3;transition:background .15s,color .15s}
.person-panel .panel-tabs button:hover{background:#f4f4ec;color:#295139}
.person-panel .panel-tabs button.active{z-index:1;background:#faf8f1;color:#295139;border-bottom-color:#faf8f1;box-shadow:inset 0 2px 0 #718366}
.person-panel .panel-tabs button:focus-visible{outline:2px solid #718366;outline-offset:-4px}
.person-panel .panel-tabs span{padding:1px 4px;min-width:16px;text-align:center;background:#dfe4d5}
@media(max-width:480px){.person-panel .panel-tabs{padding-left:8px;padding-right:8px;gap:3px}.person-panel .panel-tabs button{padding:9px 8px}}

/* Memory details and a shared rectangular crop in every memory view. */
.horizontal-timeline .event-detail{width:min(440px,100%);padding:26px;box-sizing:border-box}
.event-detail>.button+.button{margin-top:12px}
.event-detail>.button{font-size:13px;line-height:1.5}
.memory-frame{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:#ebece2;position:relative}
.memory-frame img{display:block;width:100%;height:100%;object-fit:cover}
.event-detail>.memory-frame{margin:16px 0 22px}
.memory-crop-editor{display:grid;gap:12px;margin-top:12px}
.memory-crop-editor>.button{justify-self:start}
.memory-crop-controls{padding:14px;border:1px solid #dddacb;border-radius:8px;background:#f4f5eb}
.memory-crop-controls p{margin:0 0 12px;font-size:13px;line-height:1.5}
.story-card>.memory-frame{margin:12px 0}
@media(max-width:480px){.horizontal-timeline .event-detail{padding:20px}}

/* Timeline view presets keep the same events and detail actions. */
.timeline-views{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;margin:14px auto 0}
.timeline-views button{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #dcdccc;border-radius:7px;background:#f8f7ef;color:#65745b;font-size:13px;line-height:1.3}
.timeline-views button[aria-pressed=true]{background:#e3ead8;border-color:#99aa84;color:#315237}
.timeline-views button:focus-visible{outline:2px solid #718366;outline-offset:2px}
.timeline-scaled-space{position:relative;flex-shrink:0}
.timeline-view-compact .chronicle-card,.timeline-view-overview .chronicle-card{width:138px;padding:18px 8px 10px;left:-31px}
.timeline-view-compact .chronicle-event,.timeline-view-overview .chronicle-event{width:138px}
.timeline-view-compact .chronicle-card h3,.timeline-view-overview .chronicle-card h3{font-size:16px;height:39px;margin:8px 0 10px}
.timeline-view-compact .chronicle-card small,.timeline-view-overview .chronicle-card small{font-size:11px}
.timeline-scale-label{font-size:12px;color:#6d7861;white-space:nowrap}

/* Profile tools fit a narrower sidebar now that its tabs are compact. */
.person-panel{width:700px;min-width:700px;max-width:100%}
@media(max-width:1100px){.person-panel{width:min(700px,100%);min-width:0}}

/* Multi-part relationship symbols need a wider badge at every zoom level. */
.partnership-badge{width:52px;border-radius:22px;padding:0 5px}
.partnership-badge span{white-space:nowrap;font-size:24px;line-height:1}

/* Invitation follows the profile visibility controls with its own breathing room. */
.panel-body .visibility-invitation{margin:24px 0 18px;padding-top:20px;border-top:1px solid #e2dccf}
.panel-body .visibility-invitation .profile-invitation{margin:0}

/* Give person search the main share of the header, immediately after the logo. */
@media(min-width:901px){
 .main-header{gap:16px}
 .main-header .people-search{flex:1 1 66%;width:auto;max-width:none;min-width:220px;margin:0 8px 0 16px;padding:14px 18px;gap:13px;min-height:52px;border-radius:10px;background:#fffdf7;border-color:#d6d2c0}
 .main-header .people-search input{font-size:16px;line-height:1.4}
 .main-header .people-search>svg{width:22px;height:22px;color:#6d805e}
 .main-header .people-search input::placeholder{color:#87917d}
 .main-header .view-switch,.main-header .tree-view-switch,.main-header .header-actions{flex-shrink:0}
}

/* Continuous parchment canvas with a quiet status overlay at the bottom edge. */
.main-view.tree-surface{
 background-color:#f1e7d1;
 background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.055' filter='url(%23grain)'/%3E%3C/svg%3E"),radial-gradient(ellipse at 5% 85%,#c5a26b29,transparent 52%),radial-gradient(ellipse at 90% 12%,#d8b57b30,transparent 55%),radial-gradient(ellipse at 45% 42%,#fffdf5c9,transparent 72%);
}
.tree-surface>.local-status{position:absolute;left:0;right:0;bottom:0;z-index:4;min-height:25px;height:25px;border:0;background:transparent;color:#7c826d;pointer-events:none}
.tree-surface>.local-status button{pointer-events:auto;color:#737e65}
.tree-surface .map-controls{bottom:38px}

.panel-body .connection-tools{padding:18px 0;margin:0 0 18px}
.connection-tools>p,.connection-tools>small{font-size:13px;line-height:1.6;color:#6d7861;display:block}
.connection-tool-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #e5e0d4}
.connection-tool-row>span{min-width:0}.connection-tool-row strong,.connection-tool-row small{display:block}.connection-tool-row small{font-size:12px;color:#78816c;margin-top:3px}
.connection-tool-row .button{font-size:12px;flex-shrink:0;gap:6px}
.connection-tools>small{margin-top:12px}.unlink-partnership{margin-top:12px;color:#855743}
.connection-undo:disabled{opacity:.35;cursor:default}
@media(max-width:480px){.connection-tool-row{flex-wrap:wrap}}

/* Jump directly back to any earlier focus, with native keyboard navigation. */
.focus-history-label{display:flex;align-items:center;gap:5px;min-width:0}
.focus-history-select{display:flex;align-items:center;position:relative;min-width:0}
.focus-history-select select{appearance:none;border:0;background:transparent;color:#536b4a;font:600 12px "Segoe UI",sans-serif;padding:5px 22px 5px 3px;max-width:240px;cursor:pointer;text-overflow:ellipsis}
.focus-history-select>svg{position:absolute;right:3px;pointer-events:none;color:#697b5c}
.focus-history-select select:hover{background:#e9edde;border-radius:5px}
.focus-history-select select:focus-visible{outline:2px solid #879c75;outline-offset:1px;border-radius:5px}
@media(max-width:480px){.focus-history-select select{max-width:150px}.focus-history-label>span:first-child{display:none}}

/* Warm parchment surfaces connect navigation and profile tools to the canvas. */
:root{--parchment-grain:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.04' filter='url(%23grain)'/%3E%3C/svg%3E");--panel-parchment:#f3e9d5}
.main-header{background-color:#eddfc5;background-image:var(--parchment-grain),linear-gradient(110deg,#f6eddbb3,#dfc9a43d);border-bottom-color:#d0c09f;box-shadow:0 2px 10px #806c3810}
.person-panel,.horizontal-timeline .event-detail,.timeline-sidebar{background-color:var(--panel-parchment);background-image:var(--parchment-grain),radial-gradient(ellipse at 100% 0%,#d4b78130,transparent 65%);border-color:#d3c4a6}
.person-panel .panel-tabs{background:#e7dcc4;border-bottom-color:#cdbd9d}
.person-panel .panel-tabs button{background:#e9e1cc;border-color:#cdbd9d;color:#606b50}
.person-panel .panel-tabs button:hover{background:#f0e6d1}
.person-panel .panel-tabs button.active{background:var(--panel-parchment);border-bottom-color:var(--panel-parchment);color:#295139}
.person-panel .panel-footer{background:#ede1c9;border-top-color:#d8c9ac}
.main-header .people-search{background:#faf4e7;border-color:#cdbd9f;box-shadow:inset 0 1px 3px #9275450a}
.main-header .people-search:focus-within{background:#fff8eb;border-color:#8d9b72}
.person-panel .perspective-button{background:#e5e6cf;border-color:#c9ceb2}
.person-panel .visibility-settings,.person-panel .gallery-profile-tools,.person-panel .memory-invitation{background:#eee9d6;border-color:#d2cbb0}
.person-panel .panel-body section{border-bottom-color:#d9ccb2}
.person-panel .field input,.person-panel .field select,.person-panel .field textarea{background:#fcf6e9;border-color:#d5c7ab}

/* Left-anchored history stays in the quiet edge of the canvas. */
.focus-navigation{position:relative;gap:5px;padding:5px 8px;border-radius:24px}
.focus-history-disclosure{position:static;min-width:0}
.focus-history-disclosure summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;padding:2px 4px}
.focus-history-disclosure summary::-webkit-details-marker{display:none}
.focus-history-disclosure summary>span:first-child{display:grid;gap:1px;min-width:0}
.focus-history-disclosure summary strong{font-size:13px;max-width:210px;overflow:hidden;text-overflow:ellipsis}
.focus-history-disclosure summary small{font-size:10px;color:#838572}
.focus-history-disclosure summary:focus-visible{outline:2px solid #879c75;border-radius:8px;outline-offset:2px}
.focus-history-popup{position:absolute;left:0;top:calc(100% + 7px);width:280px;max-width:calc(100vw - 48px);max-height:340px;overflow-y:auto;padding:8px;border:1px solid #cec6ac;border-radius:12px;background:#f4eddc;box-shadow:0 8px 24px #5f593526;white-space:normal}
.focus-history-popup p{font-size:11px;color:#798069;margin:5px 8px 9px}
.focus-chip .focus-history-popup button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0;padding:8px;border-radius:7px;text-align:left;font-size:13px;color:#435c3d}
.focus-history-popup button:hover,.focus-history-popup button:focus-visible{background:#e3e7d3}
.focus-history-empty{display:block;padding:8px;font-size:12px;line-height:1.5;color:#7b806d}

.family-table-view{display:flex;flex-direction:column;min-height:0;flex:1;padding:85px 24px 35px}
.family-table-view>header{margin:0 0 18px}.family-table-view h1{font:26px Georgia,serif;margin:0 0 8px;color:#36523a}.family-table-view header p{font-size:13px;line-height:1.6;color:#77816a;margin:0}
.family-table-scroll{overflow:auto;min-height:0;border:1px solid #d2c8af;border-radius:12px;background:#faf5e8cc}
.family-table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;text-align:left}
.family-table thead th{position:sticky;top:0;z-index:1;background:#e7ddc5;color:#4f6346;font-weight:600;padding:13px 16px;white-space:nowrap}
.family-table td{padding:11px 16px;border-bottom:1px solid #ddd4bf80;vertical-align:middle}
.family-group-heading th{padding:12px 16px;font:19px Georgia,serif;color:#476040;border-top:1px solid #cfc9b2;border-bottom:1px solid #d7d2bd}
.family-group-heading span{font:12px "Segoe UI",sans-serif;margin-left:10px;opacity:.75}
.tone-0 .family-group-heading{background:#e0e6d3}.tone-1 .family-group-heading{background:#eadfc8}.tone-2 .family-group-heading{background:#dde6dc}.tone-3 .family-group-heading{background:#e5dfd4}
.family-table-person{display:flex;align-items:center;gap:12px;text-align:left;color:#2c4938;min-width:190px}.family-table-person strong{font-weight:500}.family-table-person:hover strong{text-decoration:underline}
.family-table tbody tr:not(.family-group-heading):hover{background:#fffaf0}.table-life{display:grid;gap:4px;min-width:140px}.table-life>span{display:flex;align-items:center;gap:5px}.table-life small{font-size:12px;color:#7a826d}.table-deceased .family-table-person{color:#6e7169}
@media(max-width:600px){.family-table-view{padding:80px 12px 32px}.family-table td,.family-table thead th{padding:10px}.family-table-view h1{font-size:23px}}

.family-table-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}.family-table-actions .icon-button{flex-shrink:0;color:#617755}.family-table-actions .icon-button:hover{background:#e1e7d2}

/* Clip scaled card paint to its rounded edge; give overlaid controls an opaque layer. */
.tree-world .person-card{overflow:hidden;isolation:isolate}
.tree-world .node-add{background-color:#fbf9f1;background-image:none;isolation:isolate;overflow:hidden}
.tree-world .node-add:hover{background-color:#e7eadc}
.tree-world .node-add>svg{position:relative;flex-shrink:0}

/* Compact means tightly packed events, not smaller cards. Same-row spacing: 180px. */
.timeline-view-compact .chronicle-event{width:166px}
.timeline-view-compact .chronicle-card{width:166px;left:-45px;padding:18px 12px 12px}
.timeline-view-compact .chronicle-card h3{font-size:17px;height:38px;margin:9px 0 13px}
.timeline-view-compact .chronicle-card small{font-size:12px}

.timeline-today{position:absolute;top:295px;z-index:2;transform:translateX(-50%);text-align:center;color:#3c613f;pointer-events:none}
.timeline-today>i{display:block;width:3px;height:34px;border-radius:3px;margin:0 auto;background:#5e8157;box-shadow:0 0 0 4px #f5efdccc}
.timeline-today>span{display:grid;gap:3px;margin-top:22px;padding:7px 10px;background:#e5ead8;border:1px solid #bac9aa;border-radius:8px;font-size:13px;white-space:nowrap}
.timeline-today strong{font-size:12px;font-weight:500}

/* Former partnerships have a real gap and a readable status, not a continuous bond. */
.partnership-badge.separated,.partnership-badge.divorced{width:104px;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:12px;background:#f5efdf;color:#776950;border-color:#cbbf9f}
.partnership-badge.separated span,.partnership-badge.divorced span{font:12px/1.2 "Segoe UI",sans-serif;white-space:nowrap}
.partnership-badge.separated svg,.partnership-badge.divorced svg{flex-shrink:0}
.ended-partner-line{stroke:#9d9a87;opacity:.7;stroke-linecap:round}

.timeline-scope-note{font-size:12px;line-height:1.5;color:#737c65;margin:0 0 18px}
@media(max-width:600px){.timeline-scope-note{display:none}}

/* Inset save actions belong to the parchment sidebar, including when sticky. */
.person-panel .embedded-person-editor .modal-actions{background-color:#ede3ce;background-image:var(--parchment-grain);padding:14px 16px;border:1px solid #d8caad;border-radius:9px;bottom:0;margin-top:20px;box-sizing:border-box;box-shadow:0 -3px 12px #79623708}
.person-panel .embedded-person-editor .modal-actions>.button:not(.primary){background:#f8f0df;border-color:#d1c3a5}

/* Paint card borders and controls together instead of separately cached GPU tiles. */
.tree-world{will-change:auto}
.tree-world .person-card,.tree-world .node-add{transform:none;backface-visibility:visible;clip-path:none}

.timeline-branches{border:0;padding:0;margin:14px auto 0;max-width:900px;min-width:0}.timeline-branches legend{float:none;width:100%;font-family:inherit;font-size:13px;color:#53634b;margin-bottom:8px}.timeline-branches>div{display:flex;justify-content:center;flex-wrap:wrap;gap:7px 14px}.timeline-branches label{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#43563f;cursor:pointer}.timeline-branches input{width:16px;height:16px;margin:0;accent-color:#355c43}.timeline-branches small{display:block;margin-top:8px;font-size:11px;color:#73765e}.timeline-title{flex-shrink:0}@media(max-width:600px){.timeline-branches>div{justify-content:flex-start;gap:7px 10px}.timeline-branches label{font-size:12px}.timeline-branches small{font-size:10px}}

.timeline-undated{flex-shrink:0;margin:0 24px 8px;padding:10px 12px;border:1px solid #d6ccb5;border-radius:10px;background:#f0e7d4;color:#526348;text-align:left}.timeline-undated>strong{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:500}.timeline-undated>div{display:flex;gap:8px;overflow-x:auto;padding:7px 0}.timeline-undated-pair{display:flex;align-items:center;flex-shrink:0;border:1px solid #d8ceb9;border-radius:8px;padding:4px 8px;background:#faf5e9}.timeline-undated-pair>span{display:flex;align-items:center;gap:5px}.timeline-undated-pair button{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:2px;color:inherit;font-size:12px;cursor:pointer}.timeline-undated-pair button:focus-visible{outline:2px solid #526348;outline-offset:2px}.timeline-undated>small{display:block;font-size:11px;color:#75775f}@media(max-width:600px){.timeline-undated{margin:0 12px 6px}}

button.timeline-undated-pair{gap:6px;font-family:inherit;font-size:12px;color:inherit;cursor:pointer;text-align:left}button.timeline-undated-pair:hover{background:#e9eedc;border-color:#9baa87}button.timeline-undated-pair:focus-visible{outline:2px solid #526348;outline-offset:2px}.timeline-undated-pair .timeline-date-action{margin-left:7px;padding-left:8px;border-left:1px solid #d8ceb9;color:#526348;font-size:11px;white-space:nowrap}

.site-confirm{width:min(470px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #cabc9e;border-radius:18px;padding:26px;background:radial-gradient(ellipse at top left,#f6ecd5,#f4eddf 75%);color:#254737;box-shadow:0 22px 80px #233a3040}.site-confirm::backdrop{background:#25392d70;backdrop-filter:blur(3px)}.site-confirm h2{margin:0 0 14px;font-family:Georgia,serif;font-size:25px;font-weight:400}.site-confirm p{white-space:pre-line;font-size:14px;line-height:1.65;margin:0 0 22px}.site-confirm-actions{display:flex;justify-content:flex-end;gap:10px}.site-confirm-actions .button{font-size:14px}.connection-restored-area>p{line-height:1.6}

.tree-branch-filter{flex-shrink:0;position:relative;z-index:3;margin:0;padding:10px 24px;border:0;border-bottom:1px solid #d5c8ac;background:#eee3cc;color:#4d6247;min-width:0}.tree-branch-filter legend{float:left;margin-right:16px;font-size:12px;padding:2px 0}.tree-branch-filter>div{display:flex;flex-wrap:wrap;gap:7px 14px}.tree-branch-filter label{display:inline-flex;gap:6px;align-items:center;font-size:12px;cursor:pointer}.tree-branch-filter input{margin:0;width:15px;height:15px;accent-color:#355c43}.tree-branch-filter small{display:block;clear:both;margin-top:6px;font-size:10px;color:#797b62}@media(max-width:600px){.tree-branch-filter{padding:9px 12px}.tree-branch-filter legend{float:none;margin-bottom:6px}.tree-branch-filter>div{gap:6px 10px}}

.tree-surface>.canvas-heading{position:relative;left:auto;top:auto;padding:10px 24px 8px;flex-shrink:0;z-index:4}.tree-surface>.canvas-heading .focus-chip{pointer-events:auto}@media(max-width:600px){.tree-surface>.canvas-heading{padding:8px 12px}}

.tree-surface>.canvas-heading{flex-direction:row;justify-content:flex-start;align-items:center;gap:20px;flex-wrap:wrap;background:transparent;border:0}.canvas-heading>.tree-branch-filter{flex:1 1 580px;min-width:0;padding:0;margin:0;background:transparent;border:0;pointer-events:auto}.canvas-heading>.tree-branch-filter>div{align-items:center;gap:8px 14px}.canvas-heading>.tree-branch-filter label{white-space:nowrap}.tree-surface>.canvas-heading .focus-chip{flex-shrink:0}@media(max-width:600px){.tree-surface>.canvas-heading{gap:10px}.canvas-heading>.tree-branch-filter{flex-basis:100%}.canvas-heading>.tree-branch-filter>div{gap:7px 12px}}

.tree-view-switch button{position:relative}.tree-view-switch button[data-tooltip]:hover::after,.tree-view-switch button[data-tooltip]:focus-visible::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:7px 10px;border:1px solid #cfc2a5;border-radius:7px;background:#f5ecda;color:#34513c;font-size:12px;box-shadow:0 3px 12px #33442b22;z-index:50;pointer-events:none}

/* Keep the canvas continuous underneath the floating tree controls. */
.tree-surface:has(>.tree-canvas)>.canvas-heading{position:absolute;inset:0 0 auto 0;width:auto;box-sizing:border-box;pointer-events:none;background:transparent;z-index:4}
.tree-surface>.canvas-heading>.tree-branch-filter{pointer-events:none}
.tree-surface>.canvas-heading>.tree-branch-filter label{pointer-events:auto}
.tree-surface>.canvas-heading .focus-chip{pointer-events:auto}

.person-panel .profile-invitation{border-color:var(--green);background:var(--panel-parchment,#f3e9d5)}
.person-panel .profile-invitation>summary{background:var(--green);padding:15px 18px;border-radius:0;gap:18px}
.person-panel .profile-invitation>summary:hover{background:#143a29}
.person-panel .profile-invitation>summary span{color:#fff;opacity:.9}
.person-panel .profile-invitation .invitation-content{padding:20px 18px 18px}
.person-panel .profile-invitation .invitation-content>p{margin:0 0 18px;line-height:1.65}
.person-panel .profile-invitation .field{margin:0 0 14px;gap:8px}
.person-panel .profile-invitation input{padding:11px 12px;border-color:#d2c4a9;background:#fbf6e9}
.person-panel .profile-invitation .button.full{min-height:42px;margin:0}

.upcoming-events{position:relative;flex:0 1 260px;min-width:200px;margin-left:auto;color:var(--green);pointer-events:auto}.upcoming-events>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:7px 10px;border-radius:10px;background:#f8f1e1c9}.upcoming-events>summary::-webkit-details-marker{display:none}.upcoming-events>summary>span:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}.upcoming-events strong{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upcoming-events small,.upcoming-events>summary>span>span{font-size:10px}.upcoming-events>summary small{opacity:.75}.upcoming-icon{display:flex}.upcoming-popup{position:absolute;top:calc(100% + 7px);right:0;width:min(360px,calc(100vw - 32px));padding:14px;background:#f5ecda;border:1px solid #cfc2a5;border-radius:12px;box-shadow:0 12px 35px #33442b30;z-index:12}.upcoming-popup h3{font-family:Georgia,serif;font-size:18px;font-weight:400;margin:0 0 10px}.upcoming-popup button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 4px;border:0;border-top:1px solid #ddcfb4;background:none;color:inherit;text-align:left;cursor:pointer}.upcoming-popup button:hover{background:#e8dfca}.upcoming-popup button>span:not(.avatar){display:grid;gap:4px;min-width:0;flex:1}.upcoming-popup button>svg{flex-shrink:0}.upcoming-popup time{font-size:12px;white-space:nowrap}.upcoming-popup p{font-size:13px;line-height:1.6}.upcoming-events summary:focus-visible,.upcoming-popup button:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.upcoming-events>summary{gap:10px;padding:7px 12px;border:1px solid #dfd9c9;border-radius:24px;background:#faf8f0d9;color:#536b4a;min-height:29px}.upcoming-events>summary strong{font-size:13px;font-weight:600}.upcoming-events>summary small{font-size:10px;color:#838572;opacity:1}.upcoming-events>summary>.avatar{flex-shrink:0}.upcoming-popup{padding:8px;border-color:#cec6ac;border-radius:12px;background:#f4eddc;box-shadow:0 8px 24px #5f593526;max-height:340px;overflow-y:auto}.upcoming-popup h3{font-family:inherit;font-size:11px;color:#798069;margin:5px 8px 9px}.upcoming-popup button{padding:8px;border:0;border-radius:7px;color:#435c3d}.upcoming-popup button:hover,.upcoming-popup button:focus-visible{background:#e3e7d3}.upcoming-popup button strong{font-size:13px}.upcoming-popup button>.avatar{flex:0 0 28px;width:28px;min-width:28px;height:28px;aspect-ratio:1;border-radius:50%;overflow:hidden}

.sibling-parent-selection{border:1px solid #d4c6aa;border-radius:10px;padding:16px;margin:16px 0;background:#f5eddb}.sibling-parent-selection legend{font-family:Georgia,serif;font-size:18px;padding:0 6px}.sibling-parent-selection p,.sibling-parent-selection small{font-size:13px;line-height:1.6}.sibling-parent-selection label{display:flex;align-items:center;gap:10px;padding:9px 0;cursor:pointer}.sibling-parent-selection input{width:17px;height:17px;accent-color:var(--green)}.sibling-parent-selection small{display:block;margin-top:10px;color:#73765e}

.upcoming-popup{width:min(310px,calc(100vw - 32px));box-sizing:border-box}.upcoming-popup button{gap:8px}

/* Slightly larger type across the floating tree toolbar and its menus. */
.canvas-heading .tree-branch-filter label{font-size:13px}
.focus-history-disclosure summary strong{font-size:14px}
.focus-history-disclosure summary small{font-size:11px}
.focus-chip .focus-history-popup button{font-size:14px}
.focus-history-popup p{font-size:12px}
.upcoming-events>summary strong{font-size:14px}
.upcoming-events>summary small{font-size:11px}
.upcoming-popup h3{font-size:12px}
.upcoming-popup button strong{font-size:14px}
.upcoming-popup button small{font-size:11px}
.upcoming-popup time{font-size:13px}

.partner-create-grid{align-items:start;row-gap:18px}.partner-create-grid>.partner-open-row{grid-column:1 / -1;margin:0;padding:2px 0;display:flex;align-items:center;gap:10px}.partner-create-grid>.field{margin:0}

.birth-status-row{grid-column:1 / -1;display:flex;align-items:flex-end;gap:18px;min-width:0}.birth-status-row>.birth-date-field{flex:1;min-width:0;margin:0}.birth-status-row>.deceased-choice{flex:0 0 auto;align-self:flex-end;width:max-content;min-height:0;margin:0 0 14px!important;padding:0;cursor:pointer}.birth-status-row input[type=date]{min-width:0;width:100%;box-sizing:border-box}@media(max-width:420px){.birth-status-row{gap:10px}.birth-status-row>.deceased-choice{font-size:12px}}

.photo-collection-switch{display:flex;gap:8px;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid #d7c9af}.photo-collection-switch .button{flex:1;gap:7px;font-size:14px}.photo-collection-switch .button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.portrait-collection-grid .gallery-tile>img{width:96px;height:96px;aspect-ratio:1;object-fit:cover;border-radius:50%;margin:14px auto;display:block}.portrait-collection-grid .gallery-tile{background:#f7f0e0}.portrait-era{padding:14px;border:1px solid #d7c9af;border-radius:9px;margin:16px 0}.portrait-era legend{font-family:Georgia,serif;font-size:18px}.portrait-era .form-grid{gap:10px}.portrait-era input[type=number]{width:100%;min-width:0;box-sizing:border-box}.portrait-main-choice{display:flex;align-items:center;gap:9px;font-size:13px;margin:12px 0}.portrait-main-choice input{width:17px;height:17px;accent-color:var(--green)}.portrait-era small{display:block;font-size:12px;color:#747760}.portrait-collection-grid .tile-caption small{display:block}

.photo-gallery .gallery-topics[hidden],.photo-gallery .field[hidden]{display:none!important}

.inline-profile-value{display:inline-flex;align-items:baseline;gap:8px;max-width:100%;border:0;background:transparent;padding:3px 0;color:inherit;font:inherit;text-align:left;cursor:pointer;border-bottom:1px dashed transparent}.inline-profile-value:hover{border-bottom-color:#9ba58a;color:var(--green)}.inline-profile-value>svg{flex-shrink:0;opacity:.65}.inline-profile-value:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:4px}.inline-profile-form{display:grid;gap:9px;min-width:0}.inline-profile-form input,.inline-profile-form select,.inline-profile-form textarea{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #cbbd9f;border-radius:6px;background:#fcf7eb;font:inherit;color:inherit}.inline-profile-form>div{display:flex;flex-wrap:wrap;gap:6px}.inline-profile-form .button{padding:7px 9px;font-size:12px}.life-facts>div:has(.inline-profile-form){grid-column:1 / -1}

.profile-hero>div{flex:1;min-width:0}.profile-hero h2{overflow-wrap:anywhere}.profile-perspective-action{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;margin-left:auto;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--green);cursor:pointer}.profile-perspective-action:hover{background:#e5e6cf;border-color:#c9ceb2}.profile-perspective-action:focus-visible{outline:2px solid var(--green);outline-offset:3px}

.person-panel .panel-body .family-connections>section{margin:0;padding:12px 0}.person-panel .panel-body .family-connections>section:first-child{padding-top:4px}.person-panel .panel-body .family-connections>section:last-child{border-bottom:0}.family-connections .family-connection:last-child>.relative-row{padding-bottom:0}.family-connections .section-title h3{margin:0}.family-connection .relative-row{width:100%;text-align:left}.family-connection .relative-row>span:not(.avatar){flex:1;min-width:0}.family-connection .relative-row>.avatar{flex:0 0 41px;width:41px;min-width:41px;height:41px;aspect-ratio:1;border-radius:50%;overflow:hidden}.family-connection .relative-row svg.expanded{transform:rotate(180deg)}.family-connection-details{padding:14px;margin:0 0 10px;background:#eee6d3;border:1px solid #d4c6aa;border-radius:9px}.family-connection-details>p,.family-parent-editor>p{font-size:13px;line-height:1.6;margin:0 0 10px}.family-parent-editor+.family-parent-editor{border-top:1px solid #d4c6aa;margin-top:16px;padding-top:16px}.family-connection-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.family-connection-actions .button{padding:8px 12px}.family-connection-actions .text-button{display:flex;gap:5px;margin-left:auto}.family-connection-details .relationship-options{grid-template-columns:repeat(3,minmax(0,1fr))}

.person-media h3{margin:0 0 14px}.person-media .muted{font-size:14px;line-height:1.6}.person-media-item{margin:10px 0 16px}.voice-card,.source-card{display:flex;gap:14px;padding:14px;border:1px solid #d7c8ad;border-radius:9px;background:#faf4e5a6;align-items:flex-start}.voice-card>.avatar{flex:0 0 62px;width:62px;height:62px;border-radius:50%;overflow:hidden}.voice-content,.source-card>div{flex:1;min-width:0}.voice-content>strong,.source-card strong{display:block;font-size:15px;font-weight:600;overflow-wrap:anywhere}.voice-content>small,.source-card small{display:block;font-size:12px;margin-top:5px;color:#797760}.voice-controls{display:flex;align-items:center;gap:10px;margin:12px 0 8px}.voice-play{display:grid;place-items:center;flex:0 0 37px;height:37px;border:0;border-radius:50%;background:var(--orange,#bb7853);color:white;cursor:pointer}.voice-track{flex:1;min-width:0}.voice-wave{height:34px;display:flex;align-items:center;gap:2px}.voice-wave i{display:block;flex:1;background:#b8b7a5;border-radius:2px}.voice-wave i.played{background:var(--green)}.voice-track input{display:block;width:100%;height:7px;margin:0;accent-color:var(--green)}.voice-track small{font-size:11px}.voice-content .text-button{display:inline-flex;align-items:center;gap:5px}.voice-transcript,.media-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.media-item-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:7px;flex-wrap:wrap}.media-item-actions .text-button,.media-undo .text-button{display:inline-flex;align-items:center;gap:4px;font-size:12px}.media-add-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.media-add-actions>.button{flex:1;justify-content:center;font-size:13px}.media-formats{display:block;font-size:11px;color:#817c68;margin-top:9px}.source-card>svg{flex-shrink:0;color:var(--green)}.source-card .icon-button{flex-shrink:0}.media-edit-form{margin:14px 0}.media-edit-form fieldset{min-width:0;padding:15px;border:1px solid #d7c8ad;border-radius:9px}.media-edit-form .field{margin:12px 0}.media-edit-form input,.media-edit-form textarea{width:100%;box-sizing:border-box}.media-edit-form audio{display:block;width:100%;margin:12px 0}.media-undo{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:10px 0}.recording-status{color:#a94e32;font-size:13px}.voice-play:focus-visible{outline:2px solid var(--green);outline-offset:3px}@media(max-width:440px){.voice-card{gap:10px;padding:10px}.voice-card>.avatar{flex-basis:42px;width:42px!important;height:42px!important}.voice-controls{gap:6px}}

.person-panel .life-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.person-panel .life-facts>.life-birth,.person-panel .life-facts>.life-birth-name{grid-column:1}.person-panel .life-facts>.life-death{grid-column:2}.life-facts .inline-profile-value>span{overflow-wrap:anywhere;min-width:0}

.person-card .card-death-date{display:block;white-space:nowrap}

.profile-deceased-choice{display:inline-flex;align-items:center;gap:7px;width:max-content;cursor:pointer}.profile-deceased-choice input{width:16px;height:16px;margin:0;accent-color:var(--green)}.profile-death-empty,.life-death .inline-profile-form small{font-size:12px;color:#737b68}.life-death .inline-profile-form label{font-size:12px}

.voice-card{gap:11px;padding:10px 12px;align-items:center}.voice-card>.avatar{flex:0 0 54px;width:54px;height:54px}.voice-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.voice-heading>strong{min-width:0;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.voice-heading>.text-button{flex-shrink:0;font-size:11px;white-space:nowrap;border:1px solid #d7c8ad;border-radius:5px;padding:4px 6px;line-height:1.2}.voice-heading>.text-button:hover{background:#eee6d3}.voice-content>small{margin-top:2px;font-size:11px}.voice-controls{margin:5px 0 0;gap:8px}.voice-play{flex-basis:32px;height:32px}.voice-wave{height:28px}.voice-track small{font-size:10px;line-height:1.2}.voice-card .voice-transcript,.voice-card .media-note{margin:8px 0 0}.person-media-item:has(.voice-card){margin:8px 0 12px}.person-media-item:has(.voice-card)>.media-item-actions{margin-top:4px;gap:12px}.voice-controls>svg{flex-shrink:0}@media(max-width:440px){.voice-card{gap:8px;padding:9px}.voice-heading{gap:6px}.voice-heading>.text-button{font-size:10px;padding:3px 4px}.voice-heading>.text-button svg{width:12px}}

.voice-heading>strong{flex:1}.voice-heading>.voice-collapse{width:23px;height:23px;min-height:0;flex:0 0 23px;padding:2px;color:var(--green)}.voice-summary{display:flex;align-items:center;gap:10px;width:100%;padding:9px 11px;border:1px solid #d7c8ad;border-radius:8px;background:#faf4e5a6;color:var(--green);text-align:left;cursor:pointer}.voice-summary:hover{background:#eee6d3}.voice-summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}.voice-summary-icon{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:var(--green);color:#fff}.voice-summary-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.voice-summary-wave{display:flex;align-items:center;gap:2px;flex:0 0 76px;height:20px}.voice-summary-wave i{flex:1;background:#b8b7a5;border-radius:2px}.voice-summary small{font-size:11px;white-space:nowrap}.voice-summary>svg{flex-shrink:0}.person-media-item:has(>.voice-summary){margin:6px 0}@media(max-width:440px){.voice-summary{gap:7px}.voice-summary-wave{display:none}}

.recording-guide{margin-top:12px;padding:12px;border:1px solid #d7c8ad;border-radius:8px;background:#faf4e5a6}.recording-choice{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:10px}.recording-choice input{accent-color:var(--green);width:16px;height:16px}.recording-guide>.text-button{display:inline-flex;gap:6px;align-items:center;font-size:12px}.recording-example{margin-top:10px;line-height:1.6}.recording-example strong{font-size:12px;font-weight:500;color:#737b68}.recording-example p{font-family:Georgia,serif;font-size:16px;margin:8px 0}.recording-example small{font-size:11px;color:#737b68}

.node-audio-qr{position:absolute;right:52px;top:auto;bottom:4px;width:24px;height:24px;padding:1px;border:1px solid #d7c8ad;border-radius:3px;background:#fff;cursor:pointer;z-index:4}.node-audio-qr svg{display:block;width:100%;height:100%}.person-card:has(~.node-audio-qr) .person-text strong{padding-right:0}.audio-qr-dialog{position:fixed;inset:0;margin:auto;width:min(340px,calc(100vw - 32px));max-height:85vh;overflow:auto;padding:24px;border:1px solid #c9b997;border-radius:14px;background:#f8efdc;color:var(--green);text-align:center;box-sizing:border-box}.audio-qr-dialog::backdrop{background:#162e2459}.audio-qr-dialog>.icon-button{margin-left:auto}.audio-qr-dialog>svg{display:block;width:240px;max-width:100%;margin:16px auto}.audio-qr-dialog p{font-size:14px}.audio-qr-dialog small{display:block;font-size:12px;margin-top:12px}.audio-qr-dialog .button{justify-content:center}.audio-landing{max-width:560px;margin:8vh auto;padding:28px;color:var(--green);background:#f8efdc;border:1px solid #d7c8ad;border-radius:14px;box-sizing:border-box}.audio-landing h1{font-family:Georgia,serif}.audio-landing audio{width:100%;margin:15px 0}.audio-landing p{line-height:1.6}.audio-landing>.button{margin-top:20px}@media(max-width:600px){.audio-landing{margin:20px 12px;padding:20px}}

.node-audio-qr.empty-audio-qr{color:#a2a18f;background:#f1ecdfee;border-color:#d7cdb8}.node-audio-qr.empty-audio-qr:hover:not(:disabled){color:var(--green);border-color:var(--green)}.node-audio-qr.empty-audio-qr:disabled{cursor:default;opacity:.55}

.person-card .person-text strong{overflow-wrap:normal}.person-card .person-text strong>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-autoplay-start{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:18px 0;padding:16px;font-size:17px}

.audio-information{margin-top:10px;border-top:1px solid #d7c8ad;padding-top:8px;text-align:left}.audio-information>summary{cursor:pointer;font-size:12px;color:var(--green);padding:3px 0}.audio-information dl{display:grid;gap:10px;margin:10px 0 0}.audio-information dt{font-size:11px;color:#777b68;margin-bottom:3px}.audio-information dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.audio-information>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.recording-stop-area{position:sticky;bottom:0;z-index:2;margin-top:14px;padding:12px 0 2px;background:#f8f0df;border-top:1px solid #d7c8ad}.recording-stop-area .recording-status{margin:0 0 8px;font-size:14px;font-weight:600}.recording-stop-area .recording-stop-button{display:flex;width:100%;justify-content:center;align-items:center;gap:10px;min-height:46px;background:#934b38;border-color:#934b38;color:#fff;font-size:15px;font-weight:600}.recording-stop-area .recording-stop-button:hover{background:#7b3d2c}.recording-stop-area>small{display:block;font-size:12px;margin-top:8px;color:#737b68}

.unused-topic-choices{margin:12px 0;padding:12px;background:#f3ead7;border:1px solid #d7c8ad;border-radius:8px}.unused-topic-choices p{margin:0 0 9px;font-size:12px}.unused-topic-choices>div{display:flex;flex-wrap:wrap;gap:7px}.unused-topic-choices .topic-chip{display:inline-flex;align-items:center;gap:4px}

.node-wrap,.node-wrap>.person-card{width:224px;height:136px}.node-wrap>.person-card{padding:14px 14px 36px;gap:12px}.node-wrap .person-text{padding-bottom:0}.node-wrap>.photo-badge{bottom:8px;right:10px}.node-wrap>.node-audio-qr{bottom:7px;right:55px}.node-wrap>.focus-label{left:calc(50% - 125px)}.node-wrap>.person-card>.avatar{transform:none}.node-wrap.focal .person-text strong{font-size:16px}.node-wrap.focal.long-name .person-text strong{font-size:13px}.node-wrap>.partner-switch{width:224px}

.focus-children-options{display:contents}

.person-panel .panel-tabs{flex-wrap:nowrap;justify-content:flex-start;gap:4px}.person-panel .panel-tabs button{flex:0 0 auto;min-width:0;padding:9px 9px}.person-panel .panel-tabs .panel-tab-label{background:none;padding:0;min-width:0;font-size:inherit}.person-panel .panel-tabs button>span:not(.panel-tab-label){flex-shrink:0}@media(max-width:700px){.person-panel .panel-tabs{gap:3px;padding-left:8px;padding-right:8px}.person-panel .panel-tabs button{flex:1 1 0;padding:10px 4px}.person-panel .panel-tabs .panel-tab-label,.person-panel .panel-tabs button>span:not(.panel-tab-label){display:none}.person-panel .panel-tabs button>svg{width:18px;height:18px}}

/* Direct photo removal stays available to keyboard and touch users. */
.gallery-photo-item{position:relative}
.gallery-remove-action{position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #d5c9af;border-radius:50%;background:#faf7ef;color:#814b38;box-shadow:0 2px 8px #30261926;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .15s ease,background .15s ease}
.gallery-photo-item:hover .gallery-remove-action,.gallery-photo-item:focus-within .gallery-remove-action{opacity:1;pointer-events:auto}
.gallery-remove-action:hover{background:#f2e5d6}
.gallery-remove-action:focus-visible{opacity:1;outline:2px solid #204c3b;outline-offset:3px}
.gallery-remove-action:disabled{cursor:wait}
@media(hover:none){.gallery-remove-action{opacity:1;pointer-events:auto}}

.portrait-era .form-grid .field{margin-bottom:0}.portrait-era>small{margin-top:8px;line-height:1.4}.portrait-era{padding:10px 14px 12px}

.person-card .uploaded-avatar.with-portrait-age{overflow:visible}
.person-card .uploaded-avatar.with-portrait-age>img{border-radius:50%}
.portrait-age-badge{position:absolute;top:-5px;right:-7px;z-index:1;padding:2px 5px;border:1px solid #cfc5ad;border-radius:10px;background:#f7f1e3;color:#53674c;font:500 9px/1.2 Arial,sans-serif;white-space:nowrap;box-shadow:0 1px 3px #493e2112}

.person-card .portrait-age-badge{top:-6px;right:-5px;padding:2px 4px}

.audio-qr-player{margin:16px 0;padding:10px 6px;border:1px solid #d7c9af;border-radius:12px;background:#f2ead8}.audio-qr-player audio{display:block;width:100%;height:40px}.audio-qr-player p{margin:6px;font-size:13px}

.person-media-item.introduction-audio{border:1px solid var(--green);background:linear-gradient(120deg,#e8edde80,#f8f1e2);box-shadow:inset 3px 0 0 var(--green)}.introduction-audio .voice-summary-icon{color:var(--green);background:#dce5d4}.introduction-audio .voice-summary:hover{background:#dce5d466}

.audio-qr-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}.audio-qr-heading h3{margin:0;min-width:0;overflow-wrap:anywhere}.audio-qr-heading .icon-button{flex-shrink:0}

.contribution-points{position:relative;color:var(--green);font-size:13px}
.contribution-points>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;padding:10px 12px;border:1px solid #cdbd9f;border-radius:22px;background:#faf4e7;white-space:nowrap}
.contribution-points>summary::-webkit-details-marker{display:none}
.contribution-points>summary:hover,.contribution-points[open]>summary{background:#e8eddc}
.contribution-points>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.points-dropdown{position:absolute;top:calc(100% + 10px);right:0;z-index:100;width:min(360px,calc(100vw - 24px));max-height:75dvh;overflow:auto;box-sizing:border-box;padding:20px;border:1px solid #cdbd9f;border-radius:14px;background:#f6eedc;box-shadow:0 12px 30px #243c2526;white-space:normal}
.points-dropdown h3{font:21px Georgia,serif;margin:0 0 8px}.points-dropdown p{font-size:13px;line-height:1.5;margin:8px 0 14px}.points-total{display:flex;align-items:center;gap:8px;font-size:16px}.points-dropdown section{margin-top:16px;padding-top:14px;border-top:1px solid #d8cdb5}.points-dropdown h4{margin:0 0 8px;font-size:14px}.points-dropdown ul{list-style:none;margin:0;padding:0}.points-dropdown li{display:flex;justify-content:space-between;gap:15px;padding:7px 0;line-height:1.4}.points-dropdown li b{flex-shrink:0}.points-dropdown li small{display:block;font-size:11px;opacity:.7}.points-dropdown .points-note{font-size:12px;color:#747760;margin-bottom:0}.points-suggestions{display:flex;gap:6px;flex-wrap:wrap}.points-suggestions button{display:flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #cdbd9f;border-radius:14px;background:#faf6eb;color:var(--green);font:inherit;cursor:pointer}
@media(max-width:700px){.contribution-points .points-word{display:none}.contribution-points>summary{padding:8px}.points-dropdown{position:fixed;top:80px;right:12px}}

.print-studio{position:fixed;inset:0;width:calc(100vw - 40px);height:calc(100dvh - 40px);max-width:1800px;max-height:none;margin:auto;padding:0;border:1px solid #cabb9c;border-radius:16px;color:var(--green);background:#f4ebd7;overflow:hidden}.print-studio::backdrop{background:#203b3066}.print-studio>header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #d8c9ab}.print-studio h2{margin:4px 0 0;font:26px Georgia,serif}.print-studio-body{display:flex;height:calc(100% - 87px)}.print-studio aside{width:300px;flex-shrink:0;overflow:auto;padding:20px;border-right:1px solid #d8c9ab}.print-studio aside h3{font:21px Georgia,serif}.print-studio aside p{font-size:14px;line-height:1.55}.print-studio aside label{display:flex;flex-direction:column;gap:7px;margin:0 0 16px;font-size:14px}.print-studio aside input:not([type=checkbox]),.print-studio aside select{width:100%;min-width:0;padding:9px;border:1px solid #cabb9c;border-radius:6px;background:#fffaf0;color:var(--green);box-sizing:border-box}.print-studio aside .button{display:flex;justify-content:center;width:100%;margin:10px 0}.print-steps{display:flex;gap:5px}.print-steps button{border:1px solid #cabb9c;border-radius:7px;padding:8px;background:#faf5e8;color:var(--green);cursor:pointer}.print-steps .active{background:var(--green);color:white}.print-workspace{flex:1;min-width:0;overflow:auto;background:#d8d5c9}.print-selection-scroll{width:100%;height:100%;overflow:auto;background:#f4ecd8}.print-selection-scroll>svg{display:block;max-width:none}.print-select-card{cursor:pointer}.print-select-card:focus-visible{outline:none}.print-select-card:focus-visible>rect{stroke:#be7248;stroke-width:5}.print-paper-wrap{padding:32px;min-height:100%;display:flex;justify-content:center;align-items:flex-start;box-sizing:border-box}.print-paper{display:block;max-width:100%;height:auto;box-shadow:0 5px 25px #283b2833}.print-studio .print-note{font-size:12px;color:#747760}.print-size-fields{display:flex;gap:10px}.print-size-fields label{min-width:0}.print-studio aside .print-checkbox{flex-direction:row;align-items:center}.print-checkbox input{width:16px;height:16px;accent-color:var(--green)}.print-output-frame{position:fixed;width:1px;height:1px;left:-10000px;top:0;border:0}
@media(max-width:750px){.print-studio{width:100vw;height:100dvh;border-radius:0}.print-studio-body{flex-direction:column}.print-studio aside{width:auto;max-height:38%;border-right:0;border-bottom:1px solid #d8c9ab;padding:12px}.print-workspace{min-height:200px}.print-paper-wrap{padding:14px}.print-studio>header{padding:12px}.print-studio h2{font-size:22px}}

.family-picture-button{padding:9px 12px;gap:7px;background:#faf4e7;border-color:#cdbd9f;white-space:nowrap}.family-picture-button[aria-pressed=true]{background:var(--green);color:white}.picture-card-choice{position:absolute;top:calc(100% + 17px);left:22px;z-index:8;display:flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid #a7b397;border-radius:13px;background:#faf6e9;color:var(--green);font:11px Arial,sans-serif;cursor:pointer;white-space:nowrap}.picture-card-choice input{margin:0;width:15px;height:15px;accent-color:var(--green)}.picture-selection-bar{position:absolute;z-index:15;bottom:44px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:10px 16px;background:#faf5e8f5;border:1px solid #cdbd9f;border-radius:15px;box-shadow:0 5px 20px #243c2520;white-space:nowrap;font-size:14px}.picture-selection-bar .button{padding:8px 12px}.print-qr-warning{padding:8px 12px;border:1px solid #bd9468;border-radius:8px;background:#f4e4c9}.print-qr-warning p{font-size:13px!important}.print-paper-wrap{background:radial-gradient(ellipse,#ddd7c7,#b8bbae)}
@media(max-width:1100px){.family-picture-button>span{display:none}}@media(max-width:700px){.picture-selection-bar{left:12px;right:12px;transform:none;white-space:normal;flex-wrap:wrap;gap:8px}.picture-selection-bar>span{width:100%}}

.picture-card-choice{top:-38px;left:12px}.node-wrap:has(.picture-card-choice)>.focus-label{display:none}

.view-print-action{pointer-events:auto;display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:8px 10px;border:0;border-radius:18px;color:var(--green);background:#faf5e580;cursor:pointer;font:13px inherit}.view-print-action:hover{background:#f9f3e6}.direct-view-studio{background-color:var(--panel-parchment);background-image:var(--parchment-grain)}.direct-view-studio .print-workspace,.direct-view-studio .print-paper-wrap{background:#e7ddc6}.plant-controls{border:1px solid #d2c3a5;border-radius:9px;padding:12px;margin:16px 0}.plant-controls legend{font:18px Georgia,serif}.plant-controls p{font-size:12px!important}.plant-controls input[type=range]{padding:0!important;accent-color:var(--green)}.direct-view-studio .print-paper{touch-action:none}.direct-view-studio .print-paper foreignObject{pointer-events:none}

.direct-view-studio .print-paper{max-height:calc(100dvh - 190px);width:auto;height:auto;max-width:100%}.direct-view-studio .print-paper-wrap{align-items:center}

.family-activity{display:flex;align-items:center;gap:12px;flex-shrink:0;color:var(--green)}.family-person-count{display:flex;align-items:center;gap:5px;font-size:13px;white-space:nowrap}.family-person-count strong{font-weight:600}.family-activity details{position:relative}.family-activity summary{list-style:none;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;width:34px;height:34px;border-radius:50%;background:#faf6ea99}.family-activity summary::-webkit-details-marker{display:none}.family-activity summary:hover{background:#f5ecd6}.activity-badge{position:absolute;top:-4px;right:-7px;min-width:17px;padding:1px 3px;background:var(--green);color:#fffdf2;border-radius:10px;font:10px/15px Arial,sans-serif;text-align:center}.activity-dropdown{position:absolute;top:calc(100% + 12px);right:0;width:min(390px,calc(100vw - 28px));max-height:75dvh;overflow:auto;z-index:100;padding:17px;background:#f6eedb;border:1px solid #d2c4a6;border-radius:12px;box-shadow:0 12px 32px #203f3026;color:var(--green);box-sizing:border-box}.activity-dropdown header{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}.activity-dropdown h3{font:21px Georgia,serif;margin:0}.activity-dropdown p{font-size:12px;line-height:1.5;color:#73775f}.activity-dropdown .text-button{display:inline-flex;gap:5px;font-size:12px;align-items:center}.activity-dropdown ul{list-style:none;padding:0;margin:12px 0 0}.activity-dropdown li{display:flex;align-items:flex-start;gap:10px;padding:12px 4px;border-top:1px solid #d9ceb7}.activity-dropdown li>svg{flex-shrink:0;margin-top:2px}.activity-dropdown li>div{display:grid;gap:4px;flex:1;min-width:0}.activity-dropdown li strong{font-size:13px;font-weight:500}.activity-dropdown li span{font-size:13px;overflow-wrap:anywhere}.activity-dropdown li small{font-size:11px;color:#7c7f6a}.activity-dropdown li.unread strong{font-weight:700}.activity-dropdown li>i{width:6px;height:6px;border-radius:50%;background:var(--green);margin-top:5px}.activity-refresh{padding:10px;background:#e8ecdc;border-radius:7px}.activity-refresh p{margin:0 0 8px}.activity-refresh .button{font-size:12px;padding:7px 10px}.activity-empty{padding:12px 0}@media(max-width:1100px){.family-person-count>span{display:none}.family-activity{gap:7px}}@media(max-width:600px){.family-person-count{font-size:11px}.family-person-count svg{display:none}.family-activity{gap:3px}.family-activity summary{width:28px;height:28px}.activity-dropdown{position:fixed;top:78px;right:12px}}

@media(min-width:851px) and (max-width:1450px){.main-header{gap:12px;padding-left:18px;padding-right:18px}.main-header .view-switch button{font-size:0;gap:0;padding:10px}.main-header .add-main{padding:10px}.main-header .add-main>span{display:none}.main-header .header-actions{gap:8px}.main-header .family-person-count>span{display:none}}

.branch-continuation{position:absolute;z-index:4;display:flex;align-items:center;gap:4px;min-width:34px;height:25px;padding:2px 7px;border:1px solid #b7b99c;border-radius:14px;background:#faf7ed;color:#204c3b;font:12px Arial,sans-serif;box-shadow:0 2px 4px #263e2910;cursor:pointer}
 .branch-continuation svg{flex:none}
.continuation-up{bottom:calc(100% + 10px);left:22px}
.continuation-down{top:calc(100% + 10px);right:22px}
.continuation-left{right:calc(100% + 10px);top:12px}
.continuation-right{left:calc(100% + 10px);top:12px}
.branch-continuation:hover,.branch-continuation:focus-visible{background:#204c3b;color:#fff;border-color:#204c3b}

/* Keep the design action in the lower corner, clear of the upper filters. */
.tree-surface>.view-print-action{position:absolute;right:24px;bottom:38px;z-index:4;min-height:44px;padding:10px 15px;gap:8px;border:1px solid var(--green);border-radius:26px;background:var(--green);color:#fff;font-family:inherit;font-size:14px;box-shadow:0 3px 7px #204b3810}
.tree-surface>.view-print-action:hover{background:#143a29;border-color:var(--green)}
.tree-surface>.view-print-action:focus-visible,.timeline-design:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.tree-surface .reference-botanical.canvas-leaves.right{width:min(630px,95vw)!important;height:min(630px,95vw)!important;background-image:url('../botanical/grown-corner-v2.png');background-size:contain;background-position:right bottom;background-repeat:no-repeat;transform:none!important;mask-image:none;opacity:.2!important}
@media(max-width:600px){.tree-surface>.view-print-action{right:12px;bottom:38px;padding:9px 11px;font-size:12px;min-height:40px}}

.tree-surface>.canvas-heading{gap:12px}
.tree-filter-disclosure{position:relative;flex:0 0 auto;pointer-events:auto;color:#536b4a}
.tree-filter-disclosure>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:44px;box-sizing:border-box;padding:10px 13px;border:1px solid #dfd9c9;border-radius:26px;background:#faf8f0d9;font-size:13px}
.tree-filter-disclosure>summary::-webkit-details-marker{display:none}
.tree-filter-disclosure>summary:focus-visible{outline:2px solid #204c3b;outline-offset:3px}
.tree-filter-disclosure[open]>summary>svg:last-child{transform:rotate(180deg)}
.tree-filter-popup{position:fixed;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 190px);overflow:auto;box-sizing:border-box;z-index:30;padding:14px;background:#f4eddc;border:1px solid #cec6ac;border-radius:12px;box-shadow:0 8px 24px #5f593526;pointer-events:auto}
.tree-filter-popup .tree-branch-filter{padding:0;margin:0;border:0;min-width:0;background:transparent}
.tree-filter-popup .tree-branch-filter>div,.tree-filter-popup .focus-children-options{display:flex;flex-direction:column;align-items:stretch;gap:2px}
.tree-filter-popup .tree-branch-filter label{display:flex;align-items:center;gap:9px;padding:8px 5px;white-space:normal;font-size:13px;cursor:pointer;border-radius:5px}
.tree-filter-popup .tree-branch-filter label:hover{background:#e6e5d4}
.tree-filter-popup input{flex:none;width:15px;height:15px;margin:0;accent-color:#204c3b}
.tree-filter-popup p{font-size:11px;line-height:1.5;color:#7e826f;margin:10px 5px 0}
.person-add-tooltip{position:fixed;z-index:200;pointer-events:none;width:max-content;max-width:calc(100vw - 12px);box-sizing:border-box;padding:2px 5px;text-align:left;white-space:nowrap;border:1px solid #d2c8ad;border-radius:3px;background:#faf6eb;color:#435b3e;font:11px/1.4 Arial,sans-serif;box-shadow:0 1px 3px #3c452512}
.tree-surface .reference-botanical.canvas-leaves.left{left:0!important;right:auto!important;top:0!important;bottom:auto!important;width:min(350px,65vw)!important;height:min(350px,65vw)!important;background-image:url('../botanical/grown-corner-v2.png');background-size:min(630px,95vw) min(630px,95vw);background-position:right bottom;background-repeat:no-repeat;transform:rotate(180deg)!important;mask-image:linear-gradient(to right,transparent,#000 18%),linear-gradient(to bottom,transparent,#000 18%);mask-composite:intersect;opacity:.18!important}
@media(max-width:600px){.tree-filter-disclosure>summary{padding:8px 10px;min-height:40px;font-size:12px}.tree-surface>.canvas-heading{gap:8px}}

.tree-filter-popup .surname-filter { border-top:1px solid #cec6ac; margin-top:12px; padding-top:10px; }
.surname-filter legend { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; box-sizing:border-box; padding:0 5px; font-size:14px; line-height:1.4; color:#204c3b; }
.surname-filter legend .text-button { margin:0; padding:4px 0; font-size:12px; line-height:1.4; white-space:nowrap; }
.surname-filter legend .text-button:disabled { opacity:.45; cursor:default; }
.surname-filter-count { font-size:inherit; color:#204c3b; }
.auth-shell { min-height:100dvh; display:grid; place-items:center; padding:24px; box-sizing:border-box; overflow:auto; background:#f8f5ed; }
.auth-shell .auth-card { width:min(100%,580px); box-sizing:border-box; }
.auth-shell h1 { font:normal 29px/1.2 Georgia,serif; color:#204c3b; margin:0 0 18px; }
.auth-shell .media-add-actions { gap:10px; }
.auth-shell [role="alert"] { color:#91472e; }

/* Keep timeline controls shallow so the chronology remains the main content. */
.timeline-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;text-align:left;padding:16px 24px 10px}
.timeline-heading-copy{flex:1 1 320px;min-width:0}
.timeline-title h1{font-size:26px;line-height:1.15;margin:0 0 4px}
.timeline-heading-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.timeline-heading-actions .timeline-views{margin:0;flex-wrap:nowrap}
.timeline-heading-actions .timeline-design{padding:8px 12px;font-size:13px;min-height:36px}
.timeline-branches{flex:1 0 100%;max-width:none;margin:0;display:block}
.timeline-branches legend{float:left;width:auto;margin:0 14px 0 0;line-height:20px}
.timeline-branches>div{justify-content:flex-start;gap:6px 14px}
.timeline-branches small{clear:both;margin-top:5px}
.timeline-undated{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:3px 12px;padding:8px 12px}
.timeline-undated>strong{grid-column:1;grid-row:1}
.timeline-undated>div{grid-column:2;grid-row:1 / span 2;min-width:0;padding:2px 0 4px}
.timeline-undated>small{grid-column:1;grid-row:2;font-size:11px;line-height:1.3}
@media(max-width:800px){.timeline-title{padding:12px 14px 8px;gap:9px}.timeline-title h1{font-size:23px}.timeline-heading-copy{flex-basis:100%}.timeline-heading-actions{gap:8px}.timeline-branches legend{float:none;margin:0 0 5px}.timeline-undated{margin:0 14px 6px;grid-template-columns:minmax(0,1fr)}.timeline-undated>div{grid-column:1;grid-row:2}.timeline-undated>small{grid-column:1;grid-row:3}}

@media print{.print-studio[data-export-allowed="false"]{display:none!important}}


.main-header .header-research{flex-shrink:0}
.header-research button{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;font-size:12px;white-space:nowrap}
.research-start-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:end}
.research-start-fields .field{min-width:0}.research-start-fields select{width:100%;min-width:0}
.research-start-context{font-size:14px;line-height:1.6;color:#65725a;margin:8px 0 22px}
@media(min-width:901px){.main-header .people-search{flex:1 1 40%;min-width:160px;margin-left:8px}}
@media(max-width:1100px){.header-research button>span{display:none}.header-research button{padding:9px}}
@media(max-width:600px){.research-start-fields{grid-template-columns:1fr;gap:6px}.header-research button{padding:7px}}

.auth-bot-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.auth-info-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:20px;font-size:14px}.auth-info-links a{color:var(--green);text-underline-offset:4px}

/* Research chooser: aligned inputs and a clearly spaced action row. */
.research-start-fields .field{display:flex;flex-direction:column;gap:8px}
.research-start-fields label{line-height:1.45;margin:0}
.research-start-fields select{min-height:48px}
.research-start-context + .form-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}

@media(min-width:601px){.research-start-fields label{min-height:2.9em}}

/* Login: shared top edge and compact spacing; decoration must not add scroll height. */
.auth-page{overflow:clip}
@media(min-width:851px){
 .auth-page{align-items:start;align-content:safe center;padding-block:clamp(24px,4vh,48px)}
 .auth-intro{align-self:start;justify-content:flex-start;min-width:0}
 .auth-brand{line-height:1.1;margin-bottom:8px}
 .auth-intro h1{margin-top:clamp(30px,5vh,54px);margin-bottom:18px}
 .auth-intro>p{margin-block:0 16px}
 .auth-info-links{margin-top:12px}
 .auth-quote{margin-top:30px}
 .auth-card{padding:26px 30px}
 .auth-card h2{margin:14px 0 10px}
 .auth-card>p{margin-top:0;margin-bottom:16px}
 .auth-card>p:empty{display:none}
 .auth-card .auth-tabs{margin-bottom:18px}
 .auth-card .field{margin-bottom:14px}
 .auth-card .auth-submit{margin-top:16px}
 .auth-card .settings-note{margin-top:14px;margin-bottom:12px}
 .auth-card .auth-security{margin-top:14px}
 .auth-card>.legal-links{margin-top:12px}
}

/* Compact print controls with consistent typography and paired sliders. */
.print-studio aside{padding:14px 16px}
.print-studio aside>p{margin:8px 0 12px}
.print-studio aside label{gap:5px;margin-bottom:10px}
.print-studio aside input:not([type=checkbox]),.print-studio aside select{padding:7px 9px}
.print-studio .plant-controls{margin:10px 0;padding:10px 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.print-studio .plant-controls legend{font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;padding:0 4px}
.print-studio .plant-controls>p,.print-studio .plant-controls>label:first-of-type,.print-studio .plant-controls>.print-checkbox,.print-studio .plant-controls>button{grid-column:1/-1}
.print-studio .plant-controls>p{margin:2px 0 10px;line-height:1.45}
.print-studio aside input[type=range]{padding:0;border:0;background:transparent;min-height:24px;accent-color:var(--green)}
.print-studio .print-title-controls{margin:0 0 12px}
.print-studio .print-title-controls small{font-size:12px;line-height:1.4;display:block}
.print-studio .print-size-fields>label{flex:1}

/* Separate order step: full preview, product summary and a stable next action. */
.print-studio{display:flex;flex-direction:column}
.print-studio>header{flex-shrink:0;padding:12px 20px}
.print-studio-body{flex:1;min-height:0;height:auto}
.print-progress{display:flex;align-items:center;gap:10px;font-size:12px;margin-top:8px;color:#7c806e}
.print-progress button{border:0;background:none;color:inherit;padding:0;font:inherit;cursor:pointer}
.print-progress [aria-current=step]{color:var(--green);font-weight:600}
.print-design-controls[hidden]{display:none}
.print-next-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 20px;border-top:1px solid #d8c9ab;font-size:13px;flex-shrink:0}
.print-next-bar .button{min-width:130px}
.print-order-summary{flex:0 0 350px;overflow:auto;padding:24px;background:#fffaf0;border-left:1px solid #d8c9ab}
.print-order-summary h3{font:26px/1.2 Georgia,serif;margin:12px 0}
.print-order-summary p{font-size:13px;line-height:1.55}
.print-order-summary label{display:flex;flex-direction:column;gap:7px;margin:16px 0;font-size:14px}
.print-order-summary select{width:100%;padding:10px;border:1px solid #cabb9c;border-radius:6px;background:#fffdf7;color:var(--green)}
.print-order-summary .button{display:flex;justify-content:center;width:100%;margin-top:12px}
.print-order-summary .text-button{display:flex;align-items:center;gap:6px;margin-top:18px}
.print-order-prices{border-block:1px solid #d8c9ab;padding:12px 0;margin:20px 0 8px}
.print-order-prices>div{display:flex;justify-content:space-between;gap:15px;margin:10px 0;font-size:14px}
.print-order-prices dd{margin:0;text-align:right}
.print-order-prices .print-order-total{font-size:18px;font-weight:600;padding-top:10px}
.print-order-availability{color:#68735b}
.print-order-step .print-edit-handles{display:none}
.print-order-step .print-paper *{cursor:default!important;pointer-events:none!important}
.print-order-step .print-workspace{display:flex;align-items:center}
.print-order-step .print-paper-wrap{width:100%;min-height:0}
@media(max-width:850px){.print-order-step .print-studio-body{flex-direction:column;overflow:auto}.print-order-step .print-workspace{flex:none;overflow:visible}.print-order-summary{flex:none;overflow:visible;border-left:0;border-top:1px solid #d8c9ab}.print-next-bar span:first-child{max-width:65%}.print-order-step .print-paper-wrap{padding:18px}}

/* Fixed symbol column aligns birth/death dates, including partial dates. */
.person-card .birth-date,.person-card .card-death-date{display:grid;grid-template-columns:14px minmax(0,1fr);column-gap:4px;align-items:center;line-height:1.35;text-align:left}
.person-card .life-date-icon{display:flex;align-items:center;justify-content:center;width:14px;height:14px;margin:0;padding:0;justify-self:center;text-align:center;line-height:1}
.person-card .life-date-value{min-width:0;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:inherit}

/* Legal navigation belongs to the entire sign-in page, outside the form. */
.auth-layout{min-height:100dvh;display:flex;flex-direction:column;position:relative;overflow:clip;background:radial-gradient(ellipse at 14% 70%,#e7e8d775,transparent 55%),#f8f5ed}
.auth-layout>.auth-page{flex:1;min-height:0;align-content:safe center;background:transparent;overflow:visible}
.auth-footer{position:relative;flex-shrink:0;padding:14px 24px 18px;color:#67765b;background:transparent}
.auth-footer .legal-links{gap:6px 18px;font-size:12px}
@media(max-width:600px){.auth-footer{padding:12px 17px 18px}.auth-footer .legal-links{gap:6px 14px}}

.admin-context-banner{position:fixed;bottom:36px;left:50%;transform:translateX(-50%);z-index:80;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 30px);padding:9px 15px;background:#fff8e8;border:1px solid #b39b6e;border-radius:10px;box-shadow:0 3px 15px #0001;font-size:13px;color:#40513a}.admin-context-banner button{border:0;background:none;color:var(--green);text-decoration:underline;cursor:pointer;font:inherit;white-space:nowrap}.admin-context-banner small{color:#91472e}@media(max-width:650px){.admin-context-banner{flex-wrap:wrap;gap:6px;bottom:12px;width:max-content}}

.person-contacts{margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid #d8ccb3}.person-contacts small{display:block;font-size:12px;line-height:1.5;color:var(--muted)}.person-contacts dd{white-space:pre-line;overflow-wrap:anywhere}

.password-requirement{margin:0;font-size:14px;line-height:1.5;color:#36543f}.password-field-error,.auth-card .form-error{margin:4px 0 0;padding:12px 14px;border:1px solid #b34936;border-left:4px solid #b34936;border-radius:6px;background:#fff0eb;color:#842d22;font-size:15px;font-weight:600;line-height:1.5}.password-wrap input[aria-invalid="true"]{border:2px solid #b34936}

.node-delete{position:absolute;left:88px;bottom:5px;width:28px;height:28px;display:grid;place-items:center;padding:0;z-index:6;border:1px solid #d5c9ba;border-radius:8px;background:#faf8ef;color:#8b5146;cursor:pointer}.node-delete:hover,.node-delete:focus-visible{background:#f6ded5;border-color:#9f5443;outline-offset:3px}@media print{.node-delete{display:none!important}}
.layout-tools{position:absolute;left:35px;bottom:90px;z-index:8;display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:min(620px,calc(100% - 70px));padding:10px;border:1px solid #dbd3c1;border-radius:10px;background:#fcfaf2f5;box-shadow:0 2px 12px #173f3212}
.layout-tools .button{font-size:12px;padding:8px 10px}.layout-tools button[aria-pressed="true"]{background:#e3ebdc;border-color:#6d815f}.layout-tools label{display:flex;align-items:center;gap:6px;font-size:12px}.layout-tools select{border:1px solid #c9cfbc;border-radius:6px;background:#fffdf6;color:#173f32;padding:7px;max-width:220px}.layout-tools small{flex-basis:100%;font-size:11px;color:#53684a;line-height:1.5}.layout-grid{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,#55745155 1px,transparent 1px);opacity:.45}.layout-editing .person-card{cursor:grab;touch-action:none}.layout-editing.dragging .person-card{cursor:grabbing}.layout-editing.dragging .node-wrap{transition:none}.node-wrap[data-layout-moving] .person-card{outline:2px solid #cc8543;outline-offset:4px}
.map-controls button[aria-pressed="true"]{background:#e3ebdc;color:#173f32}.junction-handle{pointer-events:all;cursor:ew-resize;fill:#fffaf1;stroke:#aa7643;stroke-width:2;touch-action:none}.junction-handle:hover,.junction-handle:focus{fill:#f3d4a6;outline:none;stroke:#173f32;stroke-width:3}
@media(max-width:600px){.layout-tools{left:8px;bottom:90px;max-width:calc(100% - 16px)}.layout-tools label{flex-wrap:wrap}.layout-tools select{max-width:190px}}
@media print{.layout-tools,.layout-grid{display:none!important}}
.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;line-height:1.6;font-size:11px}.legal-links a{color:inherit;text-decoration:none;pointer-events:auto}.legal-links a:hover{text-decoration:underline}.legal-links a:focus-visible{outline:2px solid #204c3b;outline-offset:3px;border-radius:2px}.local-status .legal-links{margin-left:10px}.tree-surface>.local-status{height:auto;min-height:25px;flex-wrap:wrap;gap:4px;padding:3px 12px;box-sizing:border-box}.auth-card>.legal-links{margin-top:18px;color:#67765b}.legal-page{height:100dvh;overflow:auto;background:#f3ebd9;color:#294735;padding:28px max(20px,calc((100vw - 960px)/2));box-sizing:border-box}.legal-page>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 24px;border-bottom:1px solid #d9ccb1}.legal-brand{display:flex;gap:8px;align-items:center;font:24px Georgia,serif;color:#204c3b;text-decoration:none}.legal-home{display:flex;gap:6px;align-items:center;font-size:13px}.legal-page a{color:#204c3b}.legal-page article{max-width:800px;margin:36px auto;line-height:1.75;font-size:15px}.legal-page h1{font:36px Georgia,serif;margin:12px 0 24px}.legal-page h2{font:23px Georgia,serif;margin:30px 0 12px}.legal-page p{margin:10px 0}.legal-page ul{padding-left:24px}.legal-placeholder{color:#845c31;background:#e9d4ae55;border-bottom:1px dashed #b29166;padding:1px 3px;box-decoration-break:clone}.legal-draft{padding:16px 20px;border:1px solid #d4c29e;border-radius:10px;background:#fffaf077;font-size:13px}.legal-draft p{margin-bottom:0}.legal-page>footer{padding:22px 0;border-top:1px solid #d9ccb1;color:#607155}@media(max-width:700px){.tree-surface>.local-status .legal-links{flex-basis:100%;margin:0;gap:2px 9px;font-size:10px}.tree-surface .map-controls,.tree-surface>.view-print-action{bottom:65px}.legal-page>header{align-items:flex-start;flex-direction:column;gap:12px}.legal-page h1{font-size:30px}}
/* Phone-only layout; desktop rules remain untouched. */
@media screen and (max-width:700px){
 .app-shell{height:100dvh;min-height:0;overflow:hidden}
 .main-header{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:auto;min-height:0;flex-shrink:0;gap:6px;padding:8px 10px;position:relative;z-index:30}
 .main-header .brand{grid-column:1/3;grid-row:1;min-width:0;width:auto;gap:6px;justify-content:flex-start}
 .main-header .brand>span{display:block;font-size:16px}.main-header .brand>svg{width:25px;flex-shrink:0}.main-header .brand small{font-size:4px;letter-spacing:1px}
 .main-header .header-actions{grid-column:3/7;grid-row:1;justify-content:flex-end;gap:5px;min-width:0}
 .main-header .help-button,.main-header .connection-undo:disabled{display:none}
 .main-header .header-actions .icon-button,.main-header .family-activity summary,.main-header .contribution-points>summary{min-width:36px;min-height:38px;padding:6px}
 .main-header .family-activity{gap:3px}.main-header .points-word{display:none}
 .main-header .people-search,.main-header .people-search:focus-within{position:relative;inset:auto;grid-column:1/4;grid-row:2;width:100%;max-width:none;min-width:0;margin:0;padding:8px;gap:6px;min-height:42px;background:#fffaf1;border:1px solid #d9cfbd;box-sizing:border-box}
 .main-header .people-search>input{width:100%;min-width:0;font-size:16px}.main-header .people-search>input::placeholder{color:#7b8173}.main-header .people-search kbd{display:none}
 .main-header .view-switch{grid-column:4/6;grid-row:2;position:static;transform:none;margin:0;display:flex;min-width:0}
 .main-header .view-switch button{flex:1;min-height:42px;padding:8px;font-size:0}.main-header .view-switch svg{width:19px;height:19px}
 .main-header .header-research{grid-column:6;grid-row:2;margin:0;min-width:0}.main-header .header-research button{width:100%;min-height:42px;padding:8px}.header-research button>span{display:none}
 .main-header .tree-view-switch{grid-column:1/-1;grid-row:3;display:flex;width:100%;margin:0;min-width:0;justify-content:space-between}
 .main-header .tree-view-switch button{flex:1;min-width:0;min-height:40px;padding:8px}.main-header .tree-view-switch svg{width:19px;height:19px}
 .people-results{position:fixed;top:100px;left:10px;right:10px;width:auto;max-height:60dvh}
 .account-dropdown,.activity-dropdown,.points-dropdown{position:fixed;top:56px;right:10px;left:auto;width:min(350px,calc(100vw - 20px));max-height:calc(100dvh - 70px);overflow:auto;box-sizing:border-box}
 .tree-surface>.canvas-heading{top:10px;left:10px;right:10px;gap:6px;flex-wrap:wrap}.tree-surface .upcoming-events{flex:0 1 auto;min-width:0;margin-left:auto}.upcoming-events>summary{padding:5px 9px}.upcoming-events>summary .avatar{display:none}.upcoming-events>summary strong{font-size:12px}
 .tree-surface .canvas-leaves{max-width:60vw;pointer-events:none}.tree-surface>.view-print-action{bottom:76px;right:10px;min-height:42px;padding:9px 12px;font-size:12px}
 .person-panel{position:fixed;inset:0;width:100%;min-width:0;max-width:none;height:100dvh;z-index:60;border:0;box-sizing:border-box;overflow:hidden}
 .person-panel .panel-top{padding:8px 14px;flex-shrink:0}.person-panel .panel-top .icon-button{min-width:44px;min-height:44px}
 .person-panel .profile-hero{padding:6px 16px 14px;gap:12px;flex-shrink:0}.profile-hero h2{font-size:25px}.profile-hero>div{min-width:0}
 .person-panel .panel-tabs{flex-wrap:nowrap;flex-shrink:0;overflow-x:auto;justify-content:flex-start;gap:4px;padding:0 12px;scrollbar-width:thin}
 .person-panel .panel-tabs button{flex:0 0 auto;padding:10px 12px;min-height:44px;font-size:13px}.person-panel .panel-tabs .panel-tab-label{display:inline}.person-panel .panel-tabs button>span:not(.panel-tab-label){display:none}
 .person-panel .panel-body{padding:16px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
 .person-panel .panel-footer{padding:10px 16px;flex-wrap:wrap;gap:8px}.person-panel .panel-footer .button{white-space:normal}
 .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}.field{min-width:0}.field input,.field select,.field textarea,.modal input,.modal select,.modal textarea{font-size:16px;max-width:100%;box-sizing:border-box}
 .modal-backdrop{padding:10px}.modal,.modal.wide{padding:20px 16px;width:100%;max-height:calc(100dvh - 20px);box-sizing:border-box}.modal-heading{gap:10px;margin-bottom:16px}.modal-heading h2{font-size:25px}.modal-heading>.icon-button{flex:0 0 42px;min-height:42px}
 .modal .button,.person-panel .button{white-space:normal;min-height:42px}.modal-actions{flex-wrap:wrap;gap:8px}.modal-actions .button{flex:1}
 .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery-remove-action{opacity:1;pointer-events:auto}
 .person-panel .life-story-launch{font-size:12px;margin-top:8px;max-width:100%}
 .settings-tabs{overflow-x:auto;flex-wrap:nowrap}.settings-tabs button{flex-shrink:0;min-height:44px}.account-content{padding:16px;min-width:0}
 .timeline-title{padding:10px 12px;gap:7px}.timeline-title h1{font-size:22px;margin-bottom:3px}.timeline-heading-copy{flex-basis:100%}.timeline-heading-actions{flex-wrap:wrap}.timeline-branches{max-height:94px;overflow:auto}.timeline-undated{margin:0 12px 6px}.timeline-undated>small{display:none}.timeline-sidebar{padding:10px 12px}.event-filters label{font-size:12px;min-height:32px}.event-filters input{width:17px;height:17px}.event-detail{position:fixed;inset:0;width:100%;z-index:60;box-sizing:border-box;padding:58px 20px 24px}.event-close{width:44px;height:44px}
 .family-map-view{height:calc(100% - 65px);min-height:0}.family-map-toolbar{top:8px;left:8px;right:8px;padding:8px;gap:6px}.family-map-toolbar h2{font-size:18px}.family-map-toolbar>label{flex:1 1 42%;min-width:0}.family-map-toolbar select{width:100%;max-width:100%;font-size:16px;min-height:40px}.family-map-toolbar .button{min-height:38px}.family-map-details{top:var(--map-tools-edge,190px);left:8px;right:8px;bottom:30px;width:auto;max-width:none;padding:14px;box-sizing:border-box}.family-map-canvas .leaflet-top{top:var(--map-tools-edge,190px)}.map-life-legend{max-width:calc(100% - 20px);font-size:10px}
 .print-studio{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.print-studio>header{flex-wrap:wrap;gap:8px;padding:10px 12px}.print-studio>header h2{font-size:21px}.print-studio-body{min-height:0;flex-direction:column}.print-studio aside{width:auto;max-height:35dvh;overflow:auto;padding:12px}.print-workspace{min-height:180px}.print-next-bar{flex-wrap:wrap;gap:8px;padding:10px}.print-next-bar .button{min-height:44px;white-space:normal}.print-order-summary{width:100%;min-width:0;box-sizing:border-box}.print-progress{flex-wrap:wrap}
 .auth-layout{height:auto;min-height:100dvh;overflow:auto}.auth-page{display:flex;flex-direction:column;gap:22px;padding:26px 16px;min-height:0}.auth-intro{width:100%;min-width:0}.auth-card{width:100%;padding:24px 18px;box-sizing:border-box}.auth-card input{font-size:16px}.auth-info-links{flex-wrap:wrap}.auth-leaves{max-width:80vw;pointer-events:none}.auth-footer{position:relative}.auth-brand{font-size:32px}
}

.mobile-timeline-filters{display:none}
@media screen and (max-width:700px){
 .person-panel .panel-tabs{overflow-y:hidden}
 .person-panel .panel-body>section:first-child{padding-top:8px}
 .timeline-heading-copy p{display:none}.timeline-title h1{font-size:21px}
 .timeline-heading-actions{gap:6px}.timeline-heading-actions .button{font-size:12px;padding:8px;min-height:38px}.timeline-views button{font-size:12px;padding:8px;min-height:38px}
 .mobile-timeline-filters{display:flex;min-height:38px;padding:7px 10px;font-size:12px}
 .timeline-main:not(.mobile-filters-open) .timeline-branches,.timeline-main:not(.mobile-filters-open) .timeline-undated{display:none}
 .timeline-title{max-height:40dvh;overflow:auto}
 .timeline-sidebar .event-filters{gap:10px;scrollbar-width:thin}.timeline-sidebar>.button.primary{min-height:40px;width:34px;font-size:0}
}

@media(max-width:700px){.typed-date{width:100%;min-width:0}.typed-date .typed-date-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);gap:8px}.typed-date-fields label{display:flex;flex-direction:column;gap:5px;font-size:13px}.typed-date-fields input{width:100%;min-width:0;min-height:44px;font-size:16px;text-align:center;box-sizing:border-box}.typed-date>small{display:block;margin-top:7px;font-size:13px;line-height:1.4}}
