@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/noto-sans-arabic-0.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/noto-sans-arabic-1.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/noto-sans-arabic-2.ttf) format('truetype');
}
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/noto-sans-arabic-3.ttf) format('truetype');
}
.tabulator{border:1px solid #999;font-size:14px;overflow:hidden;position:relative;text-align:left;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.tabulator[tabulator-layout=fitDataFill] .tabulator-tableholder .tabulator-table{min-width:100%}.tabulator[tabulator-layout=fitDataTable]{display:inline-block}.tabulator.tabulator-block-select,.tabulator.tabulator-ranges .tabulator-cell:not(.tabulator-editing){user-select:none}.tabulator .tabulator-header{background-color:#fff;border-bottom:1px solid #999;box-sizing:border-box;color:#555;font-weight:700;outline:none;overflow:hidden;position:relative;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;white-space:nowrap;width:100%}.tabulator .tabulator-header.tabulator-header-hidden{display:none}.tabulator .tabulator-header .tabulator-header-contents{overflow:hidden;position:relative}.tabulator .tabulator-header .tabulator-header-contents .tabulator-headers{display:inline-block}.tabulator .tabulator-header .tabulator-col{background:#fff;border-right:1px solid #ddd;box-sizing:border-box;display:inline-flex;flex-direction:column;justify-content:flex-start;overflow:hidden;position:relative;text-align:left;vertical-align:bottom}.tabulator .tabulator-header .tabulator-col.tabulator-moving{background:#e6e6e6;border:1px solid #999;pointer-events:none;position:absolute}.tabulator .tabulator-header .tabulator-col.tabulator-range-highlight{background-color:#d6d6d6;color:#000}.tabulator .tabulator-header .tabulator-col.tabulator-range-selected{background-color:#3876ca;color:#fff}.tabulator .tabulator-header .tabulator-col .tabulator-col-content{box-sizing:border-box;padding:4px;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button{padding:0 8px}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button:hover{cursor:pointer;opacity:.6}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title-holder{position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title.tabulator-col-title-wrap{text-overflow:clip;white-space:normal}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor{background:#fff;border:1px solid #999;box-sizing:border-box;padding:1px;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-header-popup-button+.tabulator-title-editor{width:calc(100% - 22px)}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{align-items:center;bottom:0;display:flex;position:absolute;right:4px;top:0}.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #bbb;border-left:6px solid transparent;border-right:6px solid transparent;height:0;width:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{border-top:1px solid #ddd;display:flex;margin-right:-1px;overflow:hidden;position:relative}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter{box-sizing:border-box;margin-top:2px;position:relative;text-align:center;width:100%}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea{height:auto!important}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg{margin-top:3px}.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear{height:0;width:0}.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-right:25px}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover{background-color:#e6e6e6;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter{color:#bbb}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-bottom:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #bbb;border-top:none}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-bottom:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:6px solid #666;border-top:none}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter{color:#666}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter.tabulator-col-sorter-element .tabulator-arrow:hover{border-top:6px solid #555;cursor:pointer}}.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow{border-bottom:none;border-top:6px solid #666;color:#666}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title{align-items:center;display:flex;justify-content:center;text-orientation:mixed;writing-mode:vertical-rl}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title{transform:rotate(180deg)}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title{padding-right:0;padding-top:20px}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title{padding-bottom:20px;padding-right:0}.tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-sorter{bottom:auto;justify-content:center;left:0;right:0;top:4px}.tabulator .tabulator-header .tabulator-frozen{left:0;position:sticky;z-index:11}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator .tabulator-header .tabulator-calcs-holder{background:#fff!important;border-bottom:1px solid #ddd;border-top:1px solid #ddd;box-sizing:border-box;display:inline-block}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#fff!important}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-header .tabulator-frozen-rows-holder{display:inline-block}.tabulator .tabulator-header .tabulator-frozen-rows-holder:empty{display:none}.tabulator .tabulator-tableholder{-webkit-overflow-scrolling:touch;overflow:auto;position:relative;white-space:nowrap;width:100%}.tabulator .tabulator-tableholder:focus{outline:none}.tabulator .tabulator-tableholder .tabulator-placeholder{align-items:center;box-sizing:border-box;display:flex;justify-content:center;min-width:100%;width:100%}.tabulator .tabulator-tableholder .tabulator-placeholder[tabulator-render-mode=virtual]{min-height:100%}.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents{color:#ccc;display:inline-block;font-size:20px;font-weight:700;padding:10px;text-align:center;white-space:normal}.tabulator .tabulator-tableholder .tabulator-table{background-color:#fff;color:#333;display:inline-block;overflow:visible;position:relative;white-space:nowrap}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs{background:#f2f2f2!important;font-weight:700}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top{border-bottom:2px solid #ddd}.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom{border-top:2px solid #ddd}.tabulator .tabulator-tableholder .tabulator-range-overlay{inset:0;pointer-events:none;position:absolute;z-index:10}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range{border:1px solid #2975dd;box-sizing:border-box;position:absolute}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range.tabulator-range-active:after{background-color:#2975dd;border-radius:999px;bottom:-3px;content:"";height:6px;position:absolute;right:-3px;width:6px}.tabulator .tabulator-tableholder .tabulator-range-overlay .tabulator-range-cell-active{border:2px solid #2975dd;box-sizing:border-box;position:absolute}.tabulator .tabulator-footer{background-color:#fff;border-top:1px solid #999;color:#555;font-weight:700;user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;white-space:nowrap}.tabulator .tabulator-footer .tabulator-footer-contents{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:5px 10px}.tabulator .tabulator-footer .tabulator-footer-contents:empty{display:none}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs{margin-top:-5px;overflow-x:auto}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{border:1px solid #999;border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top:none;display:inline-block;font-size:.9em;padding:5px}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab:hover{cursor:pointer;opacity:.7}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{background:#fff}.tabulator .tabulator-footer .tabulator-calcs-holder{background:#fff!important;border-bottom:1px solid #ddd;border-top:1px solid #ddd;box-sizing:border-box;overflow:hidden;text-align:left;width:100%}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#fff!important;display:inline-block}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle{display:none}.tabulator .tabulator-footer .tabulator-calcs-holder:only-child{border-bottom:none;margin-bottom:-5px}.tabulator .tabulator-footer>*+.tabulator-page-counter{margin-left:10px}.tabulator .tabulator-footer .tabulator-page-counter{font-weight:400}.tabulator .tabulator-footer .tabulator-paginator{color:#555;flex:1;font-family:inherit;font-size:inherit;font-weight:inherit;text-align:right}.tabulator .tabulator-footer .tabulator-page-size{border:1px solid #aaa;border-radius:3px;display:inline-block;margin:0 5px;padding:2px 5px}.tabulator .tabulator-footer .tabulator-pages{margin:0 7px}.tabulator .tabulator-footer .tabulator-page{background:hsla(0,0%,100%,.2);border:1px solid #aaa;border-radius:3px;display:inline-block;margin:0 2px;padding:2px 5px}.tabulator .tabulator-footer .tabulator-page.active{color:#d00}.tabulator .tabulator-footer .tabulator-page:disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-footer .tabulator-page:not(disabled):hover{background:rgba(0,0,0,.2);color:#fff;cursor:pointer}}.tabulator .tabulator-col-resize-handle{display:inline-block;margin-left:-3px;margin-right:-3px;position:relative;vertical-align:middle;width:6px;z-index:11}@media (hover:hover) and (pointer:fine){.tabulator .tabulator-col-resize-handle:hover{cursor:ew-resize}}.tabulator .tabulator-col-resize-handle:last-of-type{margin-right:0;width:3px}.tabulator .tabulator-col-resize-guide{background-color:#999;height:100%;margin-left:-.5px;opacity:.5;position:absolute;top:0;width:4px}.tabulator .tabulator-row-resize-guide{background-color:#999;height:4px;left:0;margin-top:-.5px;opacity:.5;position:absolute;width:100%}.tabulator .tabulator-alert{align-items:center;background:rgba(0,0,0,.4);display:flex;height:100%;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:100}.tabulator .tabulator-alert .tabulator-alert-msg{background:#fff;border-radius:10px;display:inline-block;font-size:16px;font-weight:700;margin:0 auto;padding:10px 20px}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg{border:4px solid #333;color:#000}.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-error{border:4px solid #d00;color:#590000}.tabulator-row{box-sizing:border-box;min-height:22px;position:relative}.tabulator-row,.tabulator-row.tabulator-row-even{background-color:#fff}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selectable:hover{background-color:#bbb;cursor:pointer}}.tabulator-row.tabulator-selected{background-color:#9abcea}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-selected:hover{background-color:#769bcc;cursor:pointer}}.tabulator-row.tabulator-row-moving{background:#fff;border:1px solid #000}.tabulator-row.tabulator-moving{border-bottom:1px solid #ddd;border-top:1px solid #ddd;pointer-events:none;position:absolute;z-index:15}.tabulator-row.tabulator-range-highlight .tabulator-cell.tabulator-range-row-header{background-color:#d6d6d6;color:#000}.tabulator-row.tabulator-range-highlight.tabulator-range-selected .tabulator-cell.tabulator-range-row-header,.tabulator-row.tabulator-range-selected .tabulator-cell.tabulator-range-row-header{background-color:#3876ca;color:#fff}.tabulator-row .tabulator-row-resize-handle{bottom:0;height:5px;left:0;position:absolute;right:0}.tabulator-row .tabulator-row-resize-handle.prev{bottom:auto;top:0}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-row-resize-handle:hover{cursor:ns-resize}}.tabulator-row .tabulator-responsive-collapse{border-bottom:1px solid #ddd;border-top:1px solid #ddd;box-sizing:border-box;padding:5px}.tabulator-row .tabulator-responsive-collapse:empty{display:none}.tabulator-row .tabulator-responsive-collapse table{font-size:14px}.tabulator-row .tabulator-responsive-collapse table tr td{position:relative}.tabulator-row .tabulator-responsive-collapse table tr td:first-of-type{padding-right:10px}.tabulator-row .tabulator-cell{border-right:1px solid #ddd;box-sizing:border-box;display:inline-block;outline:none;overflow:hidden;padding:4px;position:relative;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.tabulator-row .tabulator-cell.tabulator-row-header{background:#fff;border-bottom:1px solid #ddd;border-right:1px solid #999}.tabulator-row .tabulator-cell.tabulator-frozen{background-color:inherit;display:inline-block;left:0;position:sticky;z-index:11}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-right:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-left:2px solid #ddd}.tabulator-row .tabulator-cell.tabulator-editing{border:1px solid #1d68cd;outline:none;padding:0}.tabulator-row .tabulator-cell.tabulator-editing input,.tabulator-row .tabulator-cell.tabulator-editing select{background:transparent;border:1px;outline:none}.tabulator-row .tabulator-cell.tabulator-validation-fail{border:1px solid #d00}.tabulator-row .tabulator-cell.tabulator-validation-fail input,.tabulator-row .tabulator-cell.tabulator-validation-fail select{background:transparent;border:1px;color:#d00}.tabulator-row .tabulator-cell.tabulator-row-handle{align-items:center;display:inline-flex;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box{width:80%}.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar{background:#666;height:3px;margin-top:2px;width:100%}.tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-only-cell-selected):not(.tabulator-range-row-header){background-color:#9abcea}.tabulator-row .tabulator-cell .tabulator-data-tree-branch-empty{display:inline-block;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-bottom:2px solid #ddd;border-bottom-left-radius:1px;border-left:2px solid #ddd;display:inline-block;height:9px;margin-right:5px;margin-top:-9px;vertical-align:middle;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-control{align-items:center;background:rgba(0,0,0,.1);border:1px solid #333;border-radius:2px;display:inline-flex;height:11px;justify-content:center;margin-right:5px;overflow:hidden;vertical-align:middle;width:11px}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-data-tree-control:hover{background:rgba(0,0,0,.2);cursor:pointer}}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse{background:transparent;display:inline-block;height:7px;position:relative;width:1px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand{background:#333;display:inline-block;height:7px;position:relative;width:1px}.tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle{align-items:center;background:#666;border-radius:20px;color:#fff;display:inline-flex;font-size:1.1em;font-weight:700;height:15px;justify-content:center;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;width:15px}@media (hover:hover) and (pointer:fine){.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover{cursor:pointer;opacity:.7}}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close{display:initial}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open{display:none}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle svg{stroke:#fff}.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close{display:none}.tabulator-row .tabulator-cell .tabulator-traffic-light{border-radius:14px;display:inline-block;height:14px;width:14px}.tabulator-row.tabulator-group{background:#ccc;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;box-sizing:border-box;font-weight:700;min-width:100%;padding:5px 5px 5px 10px}@media (hover:hover) and (pointer:fine){.tabulator-row.tabulator-group:hover{background-color:rgba(0,0,0,.1);cursor:pointer}}.tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow{border-bottom:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;margin-right:10px}.tabulator-row.tabulator-group.tabulator-group-level-1{padding-left:30px}.tabulator-row.tabulator-group.tabulator-group-level-2{padding-left:50px}.tabulator-row.tabulator-group.tabulator-group-level-3{padding-left:70px}.tabulator-row.tabulator-group.tabulator-group-level-4{padding-left:90px}.tabulator-row.tabulator-group.tabulator-group-level-5{padding-left:110px}.tabulator-row.tabulator-group .tabulator-group-toggle{display:inline-block}.tabulator-row.tabulator-group .tabulator-arrow{border-bottom:6px solid transparent;border-left:6px solid #666;border-right:0;border-top:6px solid transparent;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:0}.tabulator-row.tabulator-group span{color:#d00;margin-left:10px}.tabulator-toggle{background:#dcdcdc;border:1px solid #ccc;box-sizing:border-box;display:flex;flex-direction:row}.tabulator-toggle.tabulator-toggle-on{background:#1c6cc2}.tabulator-toggle .tabulator-toggle-switch{background:#fff;border:1px solid #ccc;box-sizing:border-box}.tabulator-popup-container{-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #ddd;box-shadow:0 0 5px 0 rgba(0,0,0,.2);box-sizing:border-box;display:inline-block;font-size:14px;overflow-y:auto;position:absolute;z-index:10000}.tabulator-popup{border-radius:3px;padding:5px}.tabulator-tooltip{border-radius:2px;box-shadow:none;font-size:12px;max-width:Min(500px,100%);padding:3px 5px;pointer-events:none}.tabulator-menu .tabulator-menu-item{box-sizing:border-box;padding:5px 10px;position:relative;user-select:none}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled{opacity:.5}@media (hover:hover) and (pointer:fine){.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover{background:#fff;cursor:pointer}}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu{padding-right:25px}.tabulator-menu .tabulator-menu-item.tabulator-menu-item-submenu:after{border-color:#ddd;border-style:solid;border-width:1px 1px 0 0;content:"";display:inline-block;height:7px;position:absolute;right:10px;top:calc(5px + .4em);transform:rotate(45deg);vertical-align:top;width:7px}.tabulator-menu .tabulator-menu-separator{border-top:1px solid #ddd}.tabulator-edit-list{-webkit-overflow-scrolling:touch;font-size:14px;max-height:200px;overflow-y:auto}.tabulator-edit-list .tabulator-edit-list-item{color:#333;outline:none;padding:4px}.tabulator-edit-list .tabulator-edit-list-item.active{background:#1d68cd;color:#fff}.tabulator-edit-list .tabulator-edit-list-item.active.focused{outline:1px solid hsla(0,0%,100%,.5)}.tabulator-edit-list .tabulator-edit-list-item.focused{outline:1px solid #1d68cd}@media (hover:hover) and (pointer:fine){.tabulator-edit-list .tabulator-edit-list-item:hover{background:#1d68cd;color:#fff;cursor:pointer}}.tabulator-edit-list .tabulator-edit-list-placeholder{color:#333;padding:4px;text-align:center}.tabulator-edit-list .tabulator-edit-list-group{border-bottom:1px solid #ddd;color:#333;font-weight:700;padding:6px 4px 4px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-2,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-2{padding-left:12px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-3,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-3{padding-left:20px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-4,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-4{padding-left:28px}.tabulator-edit-list .tabulator-edit-list-group.tabulator-edit-list-group-level-5,.tabulator-edit-list .tabulator-edit-list-item.tabulator-edit-list-group-level-5{padding-left:36px}.tabulator.tabulator-ltr{direction:ltr}.tabulator.tabulator-rtl{direction:rtl;text-align:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col{border-left:1px solid #ddd;border-right:initial;text-align:initial}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols{margin-left:-1px;margin-right:0}.tabulator.tabulator-rtl .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title{padding-left:25px;padding-right:0}.tabulator.tabulator-rtl .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter{left:8px;right:auto}.tabulator.tabulator-rtl .tabulator-tableholder .tabulator-range-overlay .tabulator-range.tabulator-range-active:after{background-color:#2975dd;border-radius:999px;bottom:-3px;content:"";height:6px;left:-3px;position:absolute;right:auto;width:6px}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell{border-left:1px solid #ddd;border-right:initial}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-branch{border-bottom-left-radius:0;border-bottom-right-radius:1px;border-left:initial;border-right:2px solid #ddd;margin-left:5px;margin-right:0}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell .tabulator-data-tree-control{margin-left:5px;margin-right:0}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left{border-left:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-right{border-right:2px solid #ddd}.tabulator.tabulator-rtl .tabulator-row .tabulator-col-resize-handle:last-of-type{margin-left:0;margin-right:-3px;width:3px}.tabulator.tabulator-rtl .tabulator-footer .tabulator-calcs-holder{text-align:initial}.tabulator-print-fullscreen{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10000}body.tabulator-print-fullscreen-hide>:not(.tabulator-print-fullscreen){display:none!important}.tabulator-print-table{border-collapse:collapse}.tabulator-print-table .tabulator-data-tree-branch{border-bottom:2px solid #ddd;border-bottom-left-radius:1px;border-left:2px solid #ddd;display:inline-block;height:9px;margin-right:5px;margin-top:-9px;vertical-align:middle;width:7px}.tabulator-print-table .tabulator-print-table-group{background:#ccc;border-bottom:1px solid #999;border-right:1px solid #ddd;border-top:1px solid #999;box-sizing:border-box;font-weight:700;min-width:100%;padding:5px 5px 5px 10px}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-print-table-group:hover{background-color:rgba(0,0,0,.1);cursor:pointer}}.tabulator-print-table .tabulator-print-table-group.tabulator-group-visible .tabulator-arrow{border-bottom:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #666;margin-right:10px}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-1 td{padding-left:30px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-2 td{padding-left:50px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-3 td{padding-left:70px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-4 td{padding-left:90px!important}.tabulator-print-table .tabulator-print-table-group.tabulator-group-level-5 td{padding-left:110px!important}.tabulator-print-table .tabulator-print-table-group .tabulator-group-toggle{display:inline-block}.tabulator-print-table .tabulator-print-table-group .tabulator-arrow{border-bottom:6px solid transparent;border-left:6px solid #666;border-right:0;border-top:6px solid transparent;display:inline-block;height:0;margin-right:16px;vertical-align:middle;width:0}.tabulator-print-table .tabulator-print-table-group span{color:#d00}.tabulator-print-table .tabulator-data-tree-control{align-items:center;background:rgba(0,0,0,.1);border:1px solid #333;border-radius:2px;display:inline-flex;height:11px;justify-content:center;margin-right:5px;overflow:hidden;vertical-align:middle;width:11px}@media (hover:hover) and (pointer:fine){.tabulator-print-table .tabulator-data-tree-control:hover{background:rgba(0,0,0,.2);cursor:pointer}}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse{background:transparent;display:inline-block;height:7px;position:relative;width:1px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand{background:#333;display:inline-block;height:7px;position:relative;width:1px}.tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after{background:#333;content:"";height:1px;left:-3px;position:absolute;top:3px;width:7px}.tabulator{background-color:#fff;border:none}.tabulator .tabulator-header .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #999}.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-tableholder .tabulator-placeholder span{color:#000}.tabulator .tabulator-footer .tabulator-calcs-holder{background:#f2f2f2!important;border-bottom:1px solid #fff}.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row{background:#f2f2f2!important}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab{font-weight:400}.tabulator .tabulator-footer .tabulator-spreadsheet-tabs .tabulator-spreadsheet-tab.tabulator-spreadsheet-tab-active{color:#d00;font-weight:700}.tabulator-row{border-bottom:1px solid #ddd}.tabulator-row .tabulator-cell:last-of-type{border-right:none}.tabulator-row .tabulator-cell.tabulator-row-header{border-bottom:none}.tabulator-row.tabulator-group span{color:#666}.tabulator-print-table .tabulator-print-table-group span{color:#666;margin-left:10px}
/*# sourceMappingURL=tabulator_simple.min.css.map */:root{--corner-radius:9px;--paper:#f8f7f2;--forest:#4b5b2b;--muted:#60694f;--accent:#ad744d;--family-gold:#c99a00;--canvas:#f0f1e9;--line:#d9dfd3;--shadow:0 6px 28px #4b5b2b10;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;color:var(--forest);background:var(--canvas)}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit;color:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:hover{background:#e7ebe0}button:disabled{opacity:.6}button,select{border-radius:var(--corner-radius)}button{min-height:40px}input{min-width:0}button svg{pointer-events:none}[hidden]{display:none!important}#workspace,#map{position:absolute;inset:0;width:100%;height:100dvh}#map{background:radial-gradient(ellipse at 45% 38%,#f7f7f0 0%,#f0f1e9 74%);touch-action:none}.toolbar{position:absolute;inset-block-start:20px;inset-inline:24px;display:flex;align-items:center;gap:12px;background:#f8f7f2f5;border:1px solid #fff9;box-shadow:var(--shadow);padding:9px 12px;border-radius:var(--corner-radius);max-width:1050px;margin-inline:auto}.brand{display:flex;gap:10px;align-items:center;font:28px Georgia,"Times New Roman",serif;padding:0 10px 0 0;flex-shrink:0}.brand svg{width:34px;height:34px;fill:var(--paper);stroke:var(--forest);stroke-width:1.5}.search-wrap{position:relative;flex:1;min-width:120px}.search-icon{position:absolute;inset-inline-start:12px;top:1px;font-size:27px;color:var(--muted)}#search{width:100%;height:42px;padding:0 32px 0 38px;border:1px solid var(--line);border-radius:var(--corner-radius);background:#eceee580}html[dir=rtl] #search{padding:0 38px 0 32px}#families{max-width:180px;width:160px;padding:10px;border:0;background:transparent}.language{white-space:nowrap;padding:0 12px}.icon{width:40px;flex-shrink:0;font-size:20px}.layout-bar{position:absolute;top:100px;inset-inline-start:24px;display:flex;padding:5px;gap:3px;border-radius:var(--corner-radius);background:#f8f7f2ee;box-shadow:var(--shadow);border:1px solid #fff8}.layout-bar button{padding:0 15px;color:var(--muted)}.layout-bar button[aria-pressed=true]{color:var(--paper);background:var(--forest)}.layout-bar button span:first-child{margin-inline-end:5px;font-size:17px}.map-caption{position:absolute;top:116px;inset-inline-end:28px;display:flex;align-items:center;gap:8px;font-size:12px;pointer-events:none}.dot{width:6px;height:6px;border-radius:100%;background:#729378}.zoom-controls{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:3px;background:var(--paper);border:1px solid #dce2d4;box-shadow:var(--shadow);padding:5px;border-radius:var(--corner-radius);direction:ltr}.zoom-controls button{min-width:40px;font-size:23px}.zoom-controls #home{font-size:13px;padding:0 14px}.separator{height:22px;width:1px;background:var(--line);margin:0 5px}#zoom-value{font-size:11px;min-width:40px;text-align:center;font-variant-numeric:tabular-nums}#mini-wrap{position:absolute;bottom:25px;inset-inline-start:24px;width:190px;height:135px;background:#f8f7f2df;border:1px solid #d9dfd3;border-radius:var(--corner-radius);overflow:hidden;padding:7px;box-shadow:var(--shadow)}#minimap{width:100%;height:100px;display:block}#mini-wrap span{display:block;font-size:10px;color:var(--muted);margin-top:3px}#hint{position:absolute;bottom:8px;inset-inline-end:24px;margin:0;font-size:11px;color:var(--muted);pointer-events:none}.popover{position:absolute;top:50px;inset-inline:0;min-width:280px;max-height:min(60vh,460px);overflow:auto;border-radius:var(--corner-radius);background:var(--paper);border:1px solid var(--line);box-shadow:0 16px 40px #4b5b2b24;z-index:10}.result{width:100%;text-align:start;padding:11px 16px;display:block;border-bottom:1px solid #dde3d455;border-radius:0}.result strong{display:block;font-size:15px}.result small{display:block;color:var(--muted);margin-top:4px}.empty{padding:20px;color:var(--muted)}.card{position:absolute;top:165px;inset-inline-end:24px;width:330px;max-height:calc(100dvh - 235px);border:1px solid #ffffffb8;border-radius:var(--corner-radius);z-index:5}.eyebrow{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:12px}.card h1{font:32px/1.2 Georgia,"Times New Roman",serif;margin:10px 30px 5px 0;overflow-wrap:anywhere}html[dir=rtl] .card h1{margin:10px 0 5px 30px;font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif;font-size:29px}.alternate{font-size:17px;color:var(--muted);margin:7px 0}.spelling-note{font-size:10px;line-height:1.5;margin:6px 0 18px}.relations{margin-top:22px}.relation-group{margin-top:18px}.relation-group h2{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:500;margin:0 0 8px}.relative{margin-inline-end:5px;margin-bottom:6px}.card-footer{border-top:1px solid var(--line);margin-top:18px}.text-button{font-size:12px;color:var(--muted);padding:0 4px}.card label,.person-form>label,.person-form>.person-field-label{display:block;font-size:12px;margin:18px 0 8px}.card input,.person-form>input{display:block;width:100%;padding:10px;border:1px solid var(--line);border-radius:var(--corner-radius);background:#fffdf8}.help{font-size:12px;color:var(--muted);line-height:1.6}.form-actions{display:flex;gap:9px;margin-top:22px}.primary{background:var(--forest);color:var(--paper);padding:11px 17px;border-radius:var(--corner-radius);display:inline-block;text-decoration:none;text-align:center}.primary:hover{background:#3f4e24}.error{font-size:12px;color:#975335;line-height:1.5}.card .root{font-size:12px;color:var(--muted)}#loading{position:absolute;text-align:center;border-radius:var(--corner-radius)}#toast{position:absolute;bottom:96px;left:50%;transform:translateX(-50%);background:var(--forest);color:var(--paper);border-radius:var(--corner-radius);padding:12px 20px;z-index:20}dialog{border:1px solid var(--line);border-radius:var(--corner-radius);padding:36px;max-width:490px;width:calc(100% - 32px);color:var(--forest);background:var(--paper);box-shadow:0 20px 80px #4b5b2b44}dialog::backdrop{background:#4b5b2b55;backdrop-filter:blur(3px)}dialog h1{font:42px Georgia,serif;margin:8px 0 20px}dialog p{font-size:13px;line-height:1.7;color:var(--muted)}dialog .lead{font-size:17px;color:var(--forest)}dialog .credits{border-top:1px solid var(--line);padding-top:20px;margin-top:22px;font-size:12px}.download{margin-top:12px;font-size:13px}html[dir=rtl] .eyebrow,html[dir=rtl] .relation-group h2{letter-spacing:0}html[dir=rtl] .brand,html[dir=rtl] dialog h1{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}
@media(max-width:700px){.toolbar{inset-inline:10px;top:10px;gap:4px;padding:7px;border-radius:var(--corner-radius);flex-wrap:wrap}.brand{font-size:22px;gap:5px;padding:0 6px}.brand svg{width:27px;height:27px}.search-wrap{order:5;flex-basis:100%;margin-top:3px}#search{height:39px}#families{margin-inline-start:auto;width:118px;max-width:118px;font-size:12px;padding:8px 2px}.language{font-size:12px;padding:0 8px}.toolbar .icon{width:32px}.layout-bar{top:128px;inset-inline-start:10px;gap:0;padding:4px}.layout-bar button{font-size:12px;padding:0 10px;min-height:34px}.layout-bar button span:first-child{display:none}.map-caption{top:177px;inset-inline-start:16px;inset-inline-end:auto;font-size:10px}.card{top:auto;bottom:87px;inset-inline:10px;width:auto;max-height:47dvh;padding:20px;border-radius:var(--corner-radius)}.card h1{font-size:27px}.card .relations{margin-top:14px}.relation-group{margin-top:12px}.card .spelling-note{margin-bottom:12px}.zoom-controls{bottom:max(26px,env(safe-area-inset-bottom));padding:4px}.zoom-controls button{min-width:36px}.zoom-controls #home{padding:0 10px}#mini-wrap{bottom:92px;inset-inline-start:10px;width:110px;height:82px;padding:4px}#minimap{height:57px}#mini-wrap span{font-size:8px}body.has-card #mini-wrap{display:none}#hint{display:none}.popover{max-height:50dvh;min-width:0}.card input,.person-form>input{font-size:16px}dialog{padding:27px;max-height:85dvh}#toast{bottom:92px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.bilingual-names{margin-top:15px;border-block:1px solid var(--line);padding:10px 0}.name-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:5px 0}.name-row small{font-size:10px;color:var(--muted)}.name-row span{font-size:18px;overflow-wrap:anywhere}.facts{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:18px 0}.facts dt{color:var(--muted)}.facts dd{margin:0;text-align:end}.card.editing{top:100px;max-height:calc(100dvh - 125px);width:370px}.card.editing h1{font-size:26px}.card select,.person-form>select{width:100%;padding:10px;border:1px solid var(--line);background:#fffdf8}.card input[type=checkbox],.person-form>input[type=checkbox]{width:22px;height:22px;accent-color:var(--forest)}.card .form-actions{position:sticky;bottom:0;padding:12px 0;background:var(--paper);margin-bottom:0}.suggestion-button{font-size:12px;text-align:start}.conflict-row{padding:8px;border:1px solid var(--accent);border-radius:var(--corner-radius);margin-bottom:8px}.conflict-row button{font-size:12px;text-decoration:underline}.relative-results{max-height:200px;overflow:auto}.card .error:empty{display:none}
@media(max-width:700px){.card.editing{top:auto;bottom:10px;max-height:84dvh;width:auto;z-index:12}.card.editing select{font-size:16px}.card .form-actions{bottom:0}.toolbar .brand{font-size:20px;padding:0 3px}.toolbar .language{padding:0 4px}#families{width:100px;max-width:100px}.name-row span{font-size:17px}}

.layout-bar{max-width:calc(100vw - 30px);overflow-x:auto;white-space:nowrap}.card-views{margin:16px 0}.map-caption{max-width:calc(100vw - 40px)}@media(max-width:700px){.layout-bar{width:calc(100vw - 20px);}.layout-bar button{flex-shrink:0;padding:0 9px}.map-caption{font-size:10px}}

@media(max-width:700px){body.scope-view #mini-wrap{display:none}}

/* Context belongs to a person, while layout controls belong to the whole tree. */
body.scope-view .layout-bar{display:none}
#person-view{position:absolute;top:100px;inset-inline-start:24px;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 48px);padding:5px 12px 5px 5px;border:1px solid #b5c2b4;border-radius:var(--corner-radius);background:var(--paper);box-shadow:var(--shadow)}

#view-person{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#view-kind{padding-inline-start:12px;border-inline-start:1px solid #b5c2b4}



.spelling-note{color:#68513b}.suggestion-button{color:#795033}.map-caption{color:#42594b}
@media(max-width:700px){.layout-bar{width:auto}#person-view{top:128px;inset-inline-start:10px;max-width:calc(100vw - 20px);gap:9px;padding:4px 9px 4px 4px;font-size:12px}#view-kind{font-size:11px;padding-inline-start:9px}.map-caption{font-size:11px}}


#about{width:40px;height:40px;min-height:40px;padding:8px;display:grid;place-items:center}#about .info-dot{fill:currentColor;stroke:none}#about-dialog{max-width:610px;max-height:88dvh;overflow:hidden}#about-dialog h1{margin-bottom:12px}#about-dialog .lead{margin-top:0}.history-timeline{list-style:none;padding:0;margin:24px 0}.history-timeline li{position:relative;border-inline-start:2px solid #c1cfb7;padding:0 0 22px 20px;margin-inline-start:5px}.history-timeline li::before{content:'';position:absolute;inset-inline-start:-5px;top:3px;width:8px;height:8px;background:var(--accent);border-radius:50%}.history-timeline li:last-child{padding-bottom:0}.history-date{font-size:11px;font-weight:600;color:#765035}.history-timeline h2{font-size:17px;margin:7px 0}.history-timeline p{margin:0}.about-policy{border-bottom:1px solid var(--line);padding:14px 0}.about-policy summary{cursor:pointer;font-weight:600;min-height:24px}.about-policy li{font-size:13px;line-height:1.7;margin-bottom:10px}.about-policy ol{padding-inline-start:20px}.preview-notice{background:#eee7da;padding:12px;border-radius:var(--corner-radius);color:#594630}.policy-date{font-size:11px!important}.about-entry-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none;margin-bottom:16px}.about-entry-actions a,.about-entry-actions button{flex:1;min-height:44px;font-size:16px;text-align:center;padding:11px 12px}.welcome-preference{display:flex;align-items:center;gap:9px;flex-basis:100%;min-height:44px;font-size:14px;cursor:pointer}.welcome-preference input{width:20px;height:20px;flex:none;accent-color:var(--forest)}.about-entry-actions [hidden]{display:none}.about-history>summary{cursor:pointer;min-height:44px;padding-block:10px;font-weight:600}.about-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}html[dir=rtl] .history-timeline li{padding:0 20px 22px 0}html[dir=rtl] .history-timeline li:last-child{padding-bottom:0}

/* Family collaboration stays in one dialog, leaving the map as the centerpiece. */
.community-dialog{width:min(720px,calc(100vw - 24px));max-height:90dvh;padding:24px;border:1px solid #c7cdc1;border-radius:var(--corner-radius);background:#f8f8f1;box-sizing:border-box;overflow:auto}
.community-dialog::backdrop{background:rgba(21,44,35,.42)}
.space-heading{display:flex;align-items:center;gap:12px;position:sticky;top:-24px;background:#f8f8f1;padding:12px 0;z-index:2}
.space-heading h1{font-size:28px;margin:0;flex:1}.space-heading button{font-size:14px;padding:8px}
.space-tabs{display:flex;flex-wrap:wrap;margin:12px 0 22px}.space-tabs button{border-radius:var(--corner-radius);background:#e9ede3;color:#29463a}.space-tabs [aria-pressed=true]{background:var(--forest);color:white}
.space-content p{line-height:1.6}.space-field{display:block;font-size:15px;margin:16px 0}.space-field input,.community-dialog textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:12px;background:#fffef8;color:var(--forest);border:1px solid #9daea0;border-radius:var(--corner-radius);font:inherit}
.community-dialog textarea{min-height:85px}.space-check{display:flex;align-items:flex-start;gap:10px;margin:18px 0;line-height:1.5}.space-check input{width:20px;height:20px;flex-shrink:0;accent-color:var(--forest)}
.community-dialog .primary{background:var(--forest);color:#fff;border-radius:var(--corner-radius);padding:12px 18px;margin:8px 4px;min-height:44px}.community-dialog .text-button{padding:10px;min-height:44px;color:#244d3b}.community-dialog .error{background:#fff0e9;padding:12px;border-radius:var(--corner-radius);color:#8a3020}
.request-item{padding:16px 0;border-bottom:1px solid #cdd4c8}.request-item>summary{cursor:pointer;line-height:1.5}.request-item>summary strong{font-size:18px}.request-item>summary span,.request-item>summary small{display:block;margin-top:5px}.request-item h3{font-size:18px;margin-top:20px}.status-label{color:#52654b;font-size:14px}
.change-diff{margin:12px 0}.change-diff dt{font-weight:600;margin:12px 0 4px}.change-diff dd{margin:0;padding:9px 12px;background:#eef0e7;border-radius:var(--corner-radius);overflow-wrap:anywhere}.before-value,.after-value{display:block;line-height:1.65}.before-value{color:#616d5c}.after-value{color:#1b4230}.connection-diff{margin:10px 0;line-height:1.8}.connection-diff button{font-size:14px;padding:4px 8px!important}
.review-note{border-inline-start:3px solid #a67f53;padding-inline-start:14px}.undo-control,.membership-confirm{margin:16px 0}.undo-control summary,.membership-confirm summary{cursor:pointer;text-decoration:underline}.invite-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0;padding:12px;background:#eff1e8;border-radius:var(--corner-radius)}
.gate-terms{font-size:14px}.space-content .help{color:#58664f}
@media(max-width:600px){.community-dialog{padding:18px;max-height:94dvh;border-radius:var(--corner-radius)}.space-heading{top:-18px;flex-wrap:wrap}.space-heading h1{font-size:25px}.space-tabs{gap:3px}.space-tabs button{font-size:14px;padding:9px}.card-footer{flex-wrap:wrap}.about-actions{flex-wrap:wrap}}
.community-dialog .space-tabs [aria-pressed=true]{color:#fff}

/* Shared Birzeit identity; the olive tree remains vector at every size. */
.brand img{width:46px;height:46px;object-fit:contain;flex:none}.brand .wordmark{flex-direction:column;text-align:start;gap:2px}.brand .wordmark small{font:11px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:1.1px;text-transform:uppercase;color:#53684c}.signin-logo{display:block;margin:0 auto 8px}html[lang=ar],:lang(ar){font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}html[lang=ar] .brand,html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3,html[lang=ar] .brand .wordmark small{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}.bilingual-names [lang=ar],.name-row [lang=ar]{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}.community-dialog[lang=ar]{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}.community-dialog[lang=ar] h1{font-family:inherit;font-weight:500;line-height:1.6}.community-dialog .space-field select{display:block;width:100%;padding:12px;margin-top:7px;background:#fffef8;border:1px solid #9daea0;border-radius:var(--corner-radius);font:inherit}html[lang=ar] .brand .wordmark small{letter-spacing:0;font-size:12px}@media(max-width:700px){.brand img{width:38px;height:38px}.brand .wordmark small{font-size:9px}.brand{gap:5px}.signin-logo{width:64px;height:64px}.community-dialog .space-heading h1{font-size:24px}}
.brand .wordmark small{line-height:1.3}html[lang=ar] .brand .wordmark{font-size:24px;line-height:1.35}html[lang=ar] .brand .wordmark small{line-height:1.4}
/* Shared policy: one language and one complete, concise bullet list. */
.policy-document{direction:ltr;text-align:left;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}.policy-section{border-top:1px solid var(--line);padding:12px 0}.policy-section h3{font:600 16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;margin:0 0 6px}.policy-section p{font-size:14px;line-height:1.7;margin:0}.policy-essentials{padding-inline-start:22px;margin:0}.policy-section::marker{color:var(--forest)}.terms-consent{border:1px solid var(--line);border-radius:var(--corner-radius);padding:12px;margin-top:16px}

/* One primary olive green across app controls, identity and email. */
.community-dialog{color:var(--forest)}.community-dialog .primary,.space-tabs [aria-pressed=true]{background:var(--forest)}.space-tabs button,.community-dialog .text-button{color:var(--forest)}
.auth-modes{display:flex;gap:6px;padding:4px;background:#e7ebe0;border-radius:var(--corner-radius);margin:8px 0 18px}.auth-modes button{flex:1;min-height:46px;font-size:16px;color:var(--forest);border-radius:var(--corner-radius)}.auth-modes [aria-pressed=true]{background:var(--forest);color:white}.sent-address{display:block;overflow-wrap:anywhere;font-size:17px}.next-step{font-size:17px!important;color:var(--forest)!important}.profile-hint{position:absolute;bottom:90px;left:50%;transform:translateX(-50%);display:flex;gap:8px;background:var(--paper);border:1px solid var(--line);border-radius:var(--corner-radius);padding:5px;z-index:4;max-width:calc(100vw - 24px);box-shadow:var(--shadow)}.profile-hint button{font-size:13px;padding:8px 12px}.profile-hint button:first-child{white-space:nowrap}.profile-hint button:last-child{min-width:34px}body.has-card .profile-hint{display:none}
#toast{white-space:normal;max-width:calc(100vw - 24px);width:max-content;text-align:center}

@media(max-width:600px){.community-dialog.joining .signin-logo{width:46px;height:46px;margin-bottom:0}.community-dialog.joining .space-heading h1{font-size:22px}.community-dialog.joining .space-heading{padding:8px 0}.joining .auth-modes{margin-bottom:12px}.joining .space-field{margin:10px 0;font-size:14px}.joining .space-field input{padding:9px;margin-top:4px;font-size:16px}.joining .space-check{margin:12px 0;font-size:13px}.joining .about-policy{padding:9px 0}.joining form>.primary{position:sticky;bottom:0;width:100%;margin-inline:0;box-shadow:0 5px 0 6px #f8f8f1}.joining .space-content>p{margin:10px 0}}

.map-key{position:absolute;z-index:5;inset-inline-end:24px;bottom:24px;max-width:260px;background:#f8f7f2f5;border:1px solid #b4c0af;border-radius:var(--corner-radius);color:#4b5b2b;box-shadow:0 8px 24px #4b5b2b10}.map-key summary{cursor:pointer;font-weight:600}.map-key label{display:flex;gap:8px;align-items:center;margin-top:14px}.map-key input{width:18px;height:18px;accent-color:#4b5b2b}.map-key p{margin:10px 0 0}.key-male{color:#62743c}.key-female{color:#ad744d}.has-card .map-key{display:none}@media(max-width:700px){.map-key{bottom:92px;inset-inline-end:12px;padding:8px 12px;max-width:230px}.scope-view .map-key{bottom:92px}}

#loading{inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(320px,calc(100% - 40px));padding:26px 22px;display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--forest);background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);z-index:10;pointer-events:auto}#loading strong{font-size:15px;font-weight:500}#loading-note{font-size:12px;color:var(--muted)}#loading-note:empty{display:none}.loading-spinner{width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--forest);border-radius:50%;animation:loading-turn .9s linear infinite}#loading[data-error="true"] .loading-spinner{display:none}@keyframes loading-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none;border-style:dotted}}

/* Keep controls in document flow: translated text and phone wrapping change height. */
.map-header{position:absolute;display:flex;flex-direction:column;pointer-events:none;z-index:6}
.map-header .toolbar{position:relative;inset:auto;width:100%;pointer-events:auto;z-index:2}
.map-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.map-header .layout-bar,.map-header #person-view{position:relative;inset:auto;margin:0;max-width:100%;pointer-events:auto}
.map-header .map-caption{position:static;margin-inline-start:auto;max-width:100%}

.zoom-controls #home{white-space:nowrap}
@media(max-width:700px){
 .map-header{top:max(10px,env(safe-area-inset-top));inset-inline:10px;gap:10px}
 .map-header .toolbar{display:grid;grid-template-columns:minmax(0,1fr) 64px 32px 44px 38px;grid-template-areas:"brand brand language language about" "search search search families families";gap:6px 4px}
 .toolbar .brand{grid-area:brand;min-width:0;justify-self:start}
 .toolbar .search-wrap{grid-area:search;min-width:0;margin:0}
 .toolbar #search{font-size:16px;height:40px}
 .toolbar #families{grid-area:families;min-width:0;width:100%;max-width:none;margin:0;height:40px}
 .toolbar #language{grid-area:language}.toolbar #about{grid-area:about}
 .map-navigation{gap:7px}.map-header .map-caption{flex-basis:100%;margin:0;padding-inline:6px}

 .zoom-controls{max-width:calc(100vw - 20px)}

}

/* Readable community controls; keep mobile rows in normal flow. */
:root{font-size:16px}
body{line-height:1.55}
button,input,select,textarea{font-size:1rem}
button,.text-button{min-height:44px}
.help,.space-content .help,.history-timeline p,.community-rights{font-size:1rem;line-height:1.65}
.space-field,.edit-form label,.person-facts{font-size:1rem}
.layout-bar button{min-height:44px;font-size:15px}
.connections{display:flex;align-items:center;gap:8px;background:var(--paper,#f8f8f1);border-radius:var(--corner-radius);pointer-events:auto;font-size:15px}
.connections input{width:20px;height:20px}
.map-key{display:flex;align-items:center;gap:12px;padding:6px 12px;font-size:15px;line-height:1.5}
.map-key>span{white-space:nowrap}.map-key .key-help{font-size:20px;padding:0 6px;min-width:36px}
#key-explanation{position:absolute;bottom:100%;inset-inline-end:0;width:min(280px,80vw);padding:16px;background:#fafaf4;border:1px solid #a5ad99;border-radius:var(--corner-radius);font-size:16px;box-shadow:0 5px 20px #0002}
.community-guide h2{font-size:1.25rem;margin-top:24px}.community-guide p{font-size:1rem;line-height:1.65}
.community-rights{border-top:1px solid #ccd2c4;padding-top:20px}
@media(max-width:700px){.layout-bar button{font-size:14px;padding:8px 10px}.map-navigation{gap:8px}.map-caption{font-size:13px}.connections{font-size:14px}.map-key{bottom:94px;inset-inline-end:10px;gap:8px;font-size:14px}.map-key .key-help{min-width:30px}#mini-wrap{width:104px}.toolbar input,.toolbar select{font-size:16px}.space-tabs button{font-size:15px;min-height:44px}.card .help{font-size:16px}.card-footer{flex-wrap:wrap}}

.facts{font-size:16px}.card label,.person-form>label,.person-form>.person-field-label,.history-date{font-size:14px}.map-key .key-help{touch-action:manipulation}.connections input{accent-color:var(--forest)}
.space-tabs button{font-size:16px;min-height:44px}.join-ancestry summary,.community-guide summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:600}

.share-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.share-button{min-width:40px}.advanced-backup{margin:24px 0;padding:16px;border:1px solid var(--line);border-radius:var(--corner-radius)}.advanced-backup summary{min-height:44px;cursor:pointer;font-weight:600}.space-tabs{gap:6px}.space-tabs button{padding:8px 12px;font-size:15px}.public-stewards{font-weight:600}
@media(max-width:700px){.map-header .toolbar{grid-template-columns:minmax(0,1fr) 32px 44px 36px 36px;grid-template-areas:"brand brand language share about" "search search search families families"}.toolbar #share-tree{grid-area:share;min-width:36px;padding:4px}.toolbar .wordmark{min-width:0}.toolbar .brand{font-size:20px}.toolbar #families{font-size:14px}.toolbar .brand img{width:30px;height:36px}.toolbar .wordmark small{font-size:8px}.space-tabs{display:flex;flex-wrap:wrap}.space-tabs button{font-size:14px}}

/* Keep mobile navigation to one row; the count uses the wordmark's second line. */
.mobile-label,.brand .wordmark .mobile-count{display:none}
@media(max-width:700px){
 .map-header{gap:6px}
 .map-header .toolbar{padding:5px 7px;row-gap:4px}
 .toolbar .brand{min-height:44px}
 .brand .wordmark .brand-subtitle,.layout-bar .desktop-label{display:none}
 .brand .wordmark .mobile-count{display:block;font-size:10px;letter-spacing:0;text-transform:none;white-space:nowrap}
 .layout-bar .mobile-label{display:inline}
 .map-navigation{flex-wrap:nowrap;gap:4px}
 .map-header .layout-bar{flex:1;min-width:0;padding:3px}
 .layout-bar button{flex:1 0 auto;min-width:0;min-height:44px;padding:5px 6px;white-space:nowrap}
 .connections{flex:none;gap:4px;min-height:44px;padding:3px 5px;font-size:14px;white-space:nowrap}
 .connections input{width:18px;height:18px;margin:0}
 .map-header .map-caption{display:none}
 .map-header #person-view{flex:1;min-width:0;flex-wrap:wrap;font-size:13px;padding:3px;gap:5px}
 #person-view button{font-size:13px;padding:5px 7px}
 .zoom-controls{bottom:max(12px,env(safe-area-inset-bottom))}
 #mini-wrap{bottom:74px;width:94px;height:70px}
 #minimap{height:46px}
 .map-key{bottom:74px;padding:3px 8px;gap:6px}
}
.share-actions{display:flex;align-items:center;flex-wrap:wrap}
.share-dialog{max-height:90dvh;overflow:auto}.share-image{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:var(--corner-radius)}.share-actions{gap:8px}.share-actions a,.share-actions button{font-size:16px;padding:10px;min-height:44px}.community-call{padding:18px;background:#e9edde;border-radius:var(--corner-radius)}.community-call h2{margin:0;font-size:22px}.community-call p{font-size:16px;line-height:1.65}.community-call .free-note{font-weight:600}
@media(max-width:700px){.share-dialog{padding:24px}.share-dialog h1{font-size:25px}}


/* One small dock on phones; retain the full overview on desktop. */
.map-bottom{display:contents}
.mobile-key-labels{display:none}
.brand-mark{display:flex;flex-direction:column;align-items:center;flex:none;gap:1px}
.beta-badge{display:inline-block;background:#e6ebda;color:var(--forest);border:1px solid #bbc6a5;border-radius:var(--corner-radius);padding:1px 4px;font:10px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.02em;white-space:nowrap}
.feedback-note{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:var(--corner-radius)}
.feedback-note h2{font-size:20px;margin:0 0 8px}.feedback-note p{font-size:16px;margin:0 0 8px;line-height:1.65}.feedback-note a{display:inline-flex;align-items:center;min-height:44px;color:var(--forest);font-size:16px}
@media(max-width:700px){
 #mini-wrap{display:none}
 .toolbar .brand-mark img{height:27px;width:30px}
 .toolbar .beta-badge{font-size:9px;padding:0 3px;line-height:1.3}
 .map-bottom{display:flex;flex-flow:row nowrap;align-items:center;position:absolute;z-index:5;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100vw - 20px);padding:3px;background:var(--paper);border:1px solid var(--line);border-radius:var(--corner-radius);box-shadow:var(--shadow)}
 .map-bottom .map-key{position:relative;inset:auto;bottom:auto;max-width:none;padding:0;gap:0;border:0;border-radius:0;box-shadow:none;background:none;font-size:14px;min-height:36px}
 .map-bottom .map-key>span,.map-bottom .desktop-key-help{display:none}
 .map-bottom .key-help{min-height:44px;min-width:0;padding:0 1px}
 .map-bottom .mobile-key-labels{display:flex;gap:3px;align-items:center;font-size:13px;white-space:nowrap}
 .map-bottom .zoom-controls{flex-wrap:nowrap;position:static;transform:none;max-width:none;padding:0;box-shadow:none;background:none;border:0;border-radius:0;gap:2px}
 .map-bottom .zoom-controls button{min-height:44px;min-width:44px;padding:0}
 .map-bottom .zoom-controls #home{padding:0;font-size:0}
 .map-bottom .zoom-controls #home::before{content:"⌂";font-size:25px}
 .map-bottom #zoom-value,.map-bottom .separator{display:none}
 .map-bottom .separator{margin:0 2px}
 .map-bottom #key-explanation{inset-inline-start:0;inset-inline-end:auto}
}

.share-layout{display:flex;align-items:center;gap:12px;margin:12px 0}.share-layout select{flex:1;min-width:0;min-height:44px;padding:8px;border:1px solid var(--line);background:var(--paper)}.share-note{display:block;width:100%;box-sizing:border-box;margin:8px 0;font:inherit;padding:12px;border:1px solid var(--line);border-radius:var(--corner-radius)}.social-share{border:1px solid var(--forest);border-radius:var(--corner-radius);font-weight:600}

/* Public exploration stays on the same map; no full-screen gate. */
#public-access{position:fixed;z-index:15;bottom:90px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);width:max-content;display:flex;align-items:center;gap:12px;border:1px solid #bdc5b1;border-radius:var(--corner-radius);padding:8px 14px;font-size:14px}
#public-access[hidden]{display:none}#public-access button{padding:8px 12px;white-space:nowrap;min-height:40px}
@media(max-width:700px){#public-access{bottom:76px;gap:6px;padding:6px 8px;font-size:12px}#public-access-text{max-width:135px;line-height:1.35}#public-access button{padding:6px 9px}.has-card #public-access{display:none}}
.share-actions.social-icons{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-block:18px}.social-icon{width:48px;height:48px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #b5bea5;border-radius:var(--corner-radius);background:transparent;color:#4b5b2b;padding:12px;cursor:pointer}.social-icon:hover{background:#e3e8d9}.social-icon svg{width:24px;height:24px;fill:currentColor}.social-icon:disabled{opacity:.45;cursor:wait}.share-note-details{margin-block:16px}.share-note-details summary{cursor:pointer}.share-disclosure{font-size:14px;line-height:1.5}.share-image{max-height:55vh;object-fit:contain;background:#f0f1e9}

@media(max-width:700px){.share-actions.social-icons{gap:6px}.share-actions .social-icon{width:44px;height:44px;min-height:44px;padding:10px}.share-dialog{padding:18px}.share-dialog .share-disclosure{font-size:14px}}

/* One shared desktop baseline; the mobile dock remains one row. */
#hint{display:none}
@media(min-width:701px){.zoom-controls,#mini-wrap,.map-key{bottom:24px}}
.steward-profile{display:block;margin-block:12px}a.account-name{color:var(--forest);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.history-timeline a{display:inline-block;margin-top:10px;color:var(--forest);line-height:1.6}

/* Joining is a focused form, with optional recognition and contact preferences. */
.auth-dialog{position:fixed;padding-top:42px}
.auth-dialog .space-heading{align-items:center;justify-content:space-between}
.auth-dialog .space-heading h1{flex:1;min-width:0}
.auth-dialog .space-heading button{flex:none;margin-inline-start:auto}
.join-ancestry{background:#e9eddf;border:1px solid #c9d1b9;border-radius:var(--corner-radius);padding:18px;margin:24px 0}
.join-ancestry h2{font-size:19px;line-height:1.5;margin:0 0 14px}
.join-ancestry .space-field:last-child{margin-bottom:0}
.contact-help{margin-top:0}
.join-card h1{font-size:clamp(25px,4vw,34px);line-height:1.25;margin-top:18px;padding-inline-end:16px}
.join-card p{font-size:17px;line-height:1.65}.join-card>.text-button{display:block;margin-top:10px}
#public-access{background:#f0e4bf;border-color:#b5a16a;box-shadow:0 4px 20px #66551c25;color:#3f4d23}
#public-access-text{font-weight:600}
@media(max-width:700px){.auth-dialog{padding:42px 20px 24px}.auth-dialog .space-heading h1{font-size:25px}.join-ancestry{padding:14px}.join-ancestry h2{font-size:18px}#public-access-text{font-size:12px;max-width:145px}}

/* Header and footer share edge alignment; controls participate in layout. */
.map-header{inset-inline:16px;top:max(12px,env(safe-area-inset-top));gap:8px}
.map-header .toolbar{max-width:none;margin:0;padding:6px 10px;gap:10px;min-width:0}
.toolbar .brand{font-size:27px;gap:8px;padding:0;min-height:44px}
.toolbar .brand-mark img{width:54px;height:44px;object-fit:cover}
.brand .wordmark{display:grid;align-items:center;line-height:1.05}.brand-meta{display:flex;align-items:center;margin:0}
.brand .wordmark .brand-subtitle{font-size:9px;letter-spacing:.1em;line-height:1.2}
.brand .beta-badge{font-size:9px;line-height:1.1;padding:1px 3px}
.toolbar .search-wrap{flex:1 1 240px;min-width:0;margin:0}
.toolbar #families{flex:0 1 160px;width:clamp(110px,14vw,160px);max-width:160px;min-width:0;padding:6px;font-size:15px}
.toolbar #search{height:42px;font-size:16px}.toolbar .language{padding:0 6px;font-size:15px}
.map-header .layout-bar button{padding:0 12px;min-height:40px}.connections{min-height:44px;padding:3px 8px}
.map-header .map-caption{font-size:12px}
.map-footer{position:absolute;inset-inline:16px;bottom:max(12px,env(safe-area-inset-bottom));z-index:5;display:grid;grid-template-columns:160px minmax(0,1fr) auto;align-items:end;gap:10px 16px;pointer-events:none}
.invite-compact{display:none}.map-footer>*{pointer-events:auto}.map-footer .map-bottom{display:contents}
.map-footer #mini-wrap{position:static;grid-column:1;grid-row:1 / 3;align-self:end;width:160px;height:110px;margin:0;padding:5px}
.map-footer #minimap{height:80px}
.map-footer #public-access{position:static;transform:none;grid-column:2;grid-row:1;justify-self:center;max-width:100%;padding:6px 10px;gap:8px;font-size:14px}
.map-footer .zoom-controls{position:static;transform:none;grid-column:2;grid-row:2;justify-self:center;max-width:100%;margin:0;pointer-events:auto}
.map-footer .map-key{position:relative;inset:auto;grid-column:3;grid-row:2;margin:0;max-width:none;pointer-events:auto}
.map-footer .zoom-controls button{min-height:44px}.map-footer #public-access button{min-height:40px}
@media(min-width:701px) and (max-width:1100px){
 .map-footer{grid-template-columns:130px minmax(0,1fr)}
 .map-footer #mini-wrap{width:130px;height:98px}.map-footer #minimap{height:69px}
 .map-footer .map-bottom{grid-column:2;grid-row:2;justify-self:end;display:flex;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:var(--corner-radius);padding:3px;gap:8px;pointer-events:auto}
 .map-footer .zoom-controls,.map-footer .map-key{border:0;background:none;box-shadow:none;padding:0}
 .map-footer #public-access{justify-self:end}
 .map-footer #public-access-text{font-size:14px;max-width:none}.invite-full{display:none}.invite-compact{display:inline}
 .map-footer #zoom-value{display:none}.map-footer .zoom-controls #home{font-size:0;padding:0;min-width:44px}.map-footer .zoom-controls #home::before{content:'⌂';font-size:25px}
}
@media(min-width:701px) and (max-width:800px){
 .map-header .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto auto;grid-template-areas:'brand brand language share about' 'search search search families families';gap:5px 8px}
 .toolbar .brand{grid-area:brand;justify-self:start}.toolbar .search-wrap{grid-area:search}.toolbar #families{grid-area:families;justify-self:end;width:140px;max-width:140px}
 .toolbar #language{grid-area:language}.toolbar #share-tree{grid-area:share}.toolbar #about{grid-area:about}
}
@media(max-width:700px){
 .map-header{inset-inline:10px;top:max(8px,env(safe-area-inset-top));gap:5px}
 .map-header .toolbar{grid-template-columns:minmax(0,1fr) 32px 44px 36px 36px;padding:4px 6px;gap:3px 4px}
 .toolbar .brand{font-size:22px;gap:5px}.toolbar .brand-mark img{width:44px;height:44px;object-fit:contain}
 .brand .wordmark{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:4px}.brand-meta{position:static;grid-column:2;grid-row:1;margin:0}.brand .wordmark .mobile-count{grid-column:1 / 3}.brand .wordmark .brand-subtitle{display:none}
 .toolbar .brand{position:relative;padding:0;font-size:20px}.brand .beta-badge{font-size:8px}
 .toolbar #families{width:100%;max-width:110px;justify-self:end;font-size:14px;padding:3px;flex:none}
 .toolbar #search{height:38px}.toolbar .language{font-size:13px;padding:0 3px}
 .map-header .layout-bar button{padding:3px 5px;font-size:14px;min-height:40px}.connections{font-size:13px;padding:3px 4px;gap:3px}
 .map-footer{inset-inline:10px;grid-template-columns:minmax(0,1fr);gap:8px;bottom:max(10px,env(safe-area-inset-bottom))}
 .map-footer #mini-wrap{display:none}
 .map-footer #public-access{grid-column:1;grid-row:1;justify-self:center;gap:5px;padding:4px 7px;max-width:100%}
 .map-footer #public-access-text{font-size:13px;max-width:none;white-space:nowrap}.invite-full{display:none}.invite-compact{display:inline}
 .map-footer #public-access button{font-size:14px;padding:5px 8px}
 .map-footer .map-bottom{display:flex;position:relative;inset:auto;transform:none;grid-column:1;grid-row:2;justify-self:center;gap:2px;max-width:100%;pointer-events:auto}
 .map-footer .map-key,.map-footer .zoom-controls{position:relative;inset:auto;transform:none;background:none;box-shadow:none;border:0;padding:0;gap:2px}
 .map-footer .map-key{font-size:13px;gap:0}.map-footer .zoom-controls #home{padding:0;font-size:0}
 .map-footer .zoom-controls button{min-width:40px}.map-footer .mobile-key-labels{font-size:12px;gap:3px}
 .map-footer .key-help{padding:0 1px;min-width:0}.map-footer #public-access[hidden]+.map-bottom{grid-row:1}
}

/* An invitation works immediately; the optional picture never blocks sharing. */
.share-dialog{max-width:540px;padding:28px}.share-dialog h1{font-size:30px;margin:10px 30px 18px}.share-dialog p{font-size:18px}.share-invitation{display:grid;gap:12px;margin-block:24px 8px}.share-invitation a,.share-invitation button,.share-picture button{font-size:18px;min-height:52px;padding:12px 16px}.share-copy,.share-picture-action{border:1px solid var(--line);background:#e9edde;border-radius:var(--corner-radius)}.share-picture{border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.share-picture>summary{font-size:18px;min-height:48px;cursor:pointer;padding-block:10px}.share-picture .share-image{margin-top:12px}.share-picture .share-disclosure{font-size:15px}.share-picture .share-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-block:14px}.share-invitation~.help:empty{display:none}@media(max-width:700px){.share-dialog{padding:22px}.share-dialog h1{font-size:26px}}

.share-facebook{display:block;border:1px solid #486b95;background:#eef3fa;color:#234f80;border-radius:var(--corner-radius);text-align:center;text-decoration:none}.share-facebook:hover{background:#e0eafa}
/* Arabic needs room for its letterforms, including in small-screen forms. */
.community-dialog[lang=ar] .space-check,.community-dialog[lang=ar] .space-field{font-size:16px;line-height:1.8}.policy-document[lang=ar]{direction:rtl;text-align:right;font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}.policy-document[lang=ar] h3{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif!important;line-height:1.8}.policy-document [lang=en]{direction:ltr;text-align:left}.policy-document[lang=ar] details>summary{font-size:16px;line-height:1.8}

/* Keep the smallest signed-in header clear of Add person. Beta remains in About. */
@media(max-width:360px){.brand .brand-meta{display:none}.brand .wordmark{grid-template-columns:auto}.brand .wordmark .mobile-count{grid-column:1}}

/* The header wordmark is just the name, with the count beneath it on phones. */
.brand .wordmark{grid-template-columns:auto;column-gap:0}.brand .wordmark .mobile-count{grid-column:1}

/* Clearly visible legend swatches with breathing room inside the compact dock. */
.map-key .key-male,.map-key .key-female{display:inline-block;width:12px;height:12px;flex:none;border-radius:50%;font-size:0;vertical-align:middle;background:currentColor}
@media(max-width:700px){
 .map-footer .key-help{padding-inline:10px}
 .map-footer .mobile-key-labels{gap:8px}
 .mobile-key-labels>span{display:inline-flex;align-items:center;gap:4px}
}

/* Keep the centered identity outside the scrollable authentication form. */
.auth-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:16px 20px;max-height:94dvh}
.auth-dialog .space-heading{position:relative;top:auto;flex:none;display:grid;gap:8px 12px;padding:0 0 12px;background:#f8f8f1;z-index:3}
.auth-dialog .space-heading h1{grid-row:2;font-size:28px;line-height:1.25}
.auth-dialog .space-heading .signin-logo{grid-row:1;grid-column:1/-1;width:88px;height:88px;margin:0 auto 4px}
.auth-dialog .space-heading button{grid-row:2;grid-column:2;margin:0}
.auth-dialog .space-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-inline-end:4px}
.auth-dialog .auth-modes{margin:0 0 10px}.auth-dialog .join-help{font-size:14px;line-height:1.5;margin:8px 0 12px}
.inline-link{text-decoration:underline;text-underline-offset:3px;color:inherit}
.join-fields{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 10px}
.joining .join-fields .space-field{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;margin:0;font-size:15px;line-height:1.4}
.join-fields .field-label{white-space:nowrap}
.joining .join-fields .space-field[hidden]{display:none}
.joining .join-fields input,.joining .join-fields select,.joining .join-fields textarea{margin:0;min-width:0;min-height:44px;padding:9px 10px;font-size:16px}
.joining .join-fields .join-note{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin-top:4px}
.joining .join-fields .join-note textarea{min-height:88px;line-height:1.45;resize:vertical}
.join-note textarea::placeholder{color:#68725b;opacity:1}
.required-marker{display:none;color:#b33125;font-weight:700}
.space-field:has(:required) .required-marker,.space-check:has(:required)>.required-marker{display:inline}
.joining .space-check{margin:12px 0;font-size:14px}.joining .about-policy{padding:0;font-size:14px}
.joining form>.primary{position:static;width:100%;margin:12px 0 0;box-shadow:none}
@media(max-width:600px){.auth-dialog[open]{padding:12px}.auth-dialog .space-heading{gap:6px;padding-bottom:10px}.auth-dialog .space-heading h1{font-size:22px}.auth-dialog .space-heading .signin-logo{width:80px;height:80px}.auth-dialog .space-heading button{padding:6px;font-size:13px}.joining .join-fields .space-field{font-size:14px}.auth-dialog[lang=ar] .space-heading h1{font-size:21px}}

.auth-diagnostics .request-item,.community-dialog .error{overflow-wrap:anywhere}
.auth-diagnostics{margin-top:24px;border-top:1px solid var(--line);padding-top:12px}
/* Family space: a stable heading/navigation and one scrolling work area. */
.community-dialog:not(.auth-dialog){width:min(1120px,calc(100vw - 24px));height:min(860px,94dvh);max-height:94dvh;overflow:hidden;padding:24px}
.community-dialog:not(.auth-dialog)[open]{display:flex;flex-direction:column}
.community-dialog:not(.auth-dialog) .space-heading{position:relative;top:0;flex:none;padding:0 0 14px;background:#f8f8f1}
.community-dialog:not(.auth-dialog) .space-tabs{flex:none;margin:0 0 14px}
.community-dialog:not(.auth-dialog) .space-content{overflow:auto;min-height:0;padding:0 6px 20px}
.space-table{width:100%;border-collapse:collapse;table-layout:auto;margin:12px 0 24px;font-size:15px}
.space-table th{text-align:start;padding:12px;background:#e9ede3;font-weight:600}
.space-table td{padding:12px;border-bottom:1px solid #d3dacb;vertical-align:top;overflow-wrap:anywhere;max-width:360px;line-height:1.6}
.space-table td .primary,.space-table td .text-button{margin:0;white-space:normal;min-width:0;max-width:100%}
.request-detail,.member-detail:has(h2){padding:20px;background:#fffef8;border:1px solid #cbd3c2;border-radius:var(--corner-radius);margin:12px 0 24px}
.request-detail>header{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.request-detail>header strong{font-size:22px}
.decision-confirm{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px;margin-top:16px;background:#e9ede3;border:1px solid #899777;border-radius:var(--corner-radius)}
.invitation-form{border-top:1px solid #cbd3c2;padding-top:16px}

@media(max-width:900px){.space-table,.space-table tbody,.space-table tr,.space-table td{display:block}.space-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.space-table tr{padding:10px 0;border-bottom:1px solid #b9c4ac}.space-table td{border:0;max-width:none;padding:5px 8px;display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px}.space-table td::before{content:attr(data-label);font-weight:600;font-size:13px}.space-table td{direction:inherit}.space-table td .primary,.space-table td .text-button{justify-self:start;white-space:normal;min-width:0;max-width:100%}}
@media(max-width:600px){.community-dialog:not(.auth-dialog){padding:16px 12px;width:calc(100vw - 12px);height:96dvh;max-height:96dvh}.community-dialog:not(.auth-dialog) .space-heading h1{font-size:22px}.request-detail,.member-detail:has(h2){padding:12px}.community-dialog:not(.auth-dialog) .space-tabs{gap:4px}.community-dialog:not(.auth-dialog) .space-tabs button{padding:7px 10px}}

.community-dialog .suggested-action{outline:3px solid #a78039;outline-offset:2px}
.community-dialog:not(.auth-dialog){max-width:min(1120px,calc(100vw - 24px))}
@media(max-width:600px){.community-dialog:not(.auth-dialog){max-width:calc(100vw - 12px)}}

@media(max-width:600px){.detail-table tr{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);gap:8px}.detail-table td{display:block;padding:6px 0}.detail-table td:first-child{font-weight:600}.detail-table td::before{display:none}}

/* Keep the map behind an opaque surface and a fixed breathing space around scrolling details. */
.card{background:#fffef8;border-color:#a8b599;box-shadow:0 12px 40px #27381830}
.card{display:flex;flex-direction:column;overflow:hidden;padding:20px 20px 22px}
.card-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;padding-inline:4px;scroll-padding-block:16px}
.card-scroll>.text-button{display:block;margin-top:10px}.person-contact:empty{display:none}
.member-email{display:block;overflow-wrap:anywhere;padding:10px 0;color:var(--forest);text-underline-offset:3px}
/* Account is an icon within the existing header, not a third phone row. */
#family-space-shortcut{width:40px;min-width:40px;height:40px;min-height:40px;padding:8px;display:grid;place-items:center}
@media(max-width:1100px){
 .map-header .toolbar #family-space-shortcut{grid-area:account;justify-self:end}
 .map-header .toolbar:has(#family-space-shortcut:not([hidden])){grid-template-columns:minmax(0,1fr) 32px 68px 40px 40px;grid-template-areas:'brand brand language share about' 'search search families families account'}
 .toolbar #families{width:100%;max-width:100%;min-width:0}
}
/* Everyday member options and administration are distinct navigation groups. */
.community-dialog.account-workspace[open]{display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);column-gap:22px}
.account-workspace .space-heading{grid-column:1/-1}
.account-nav{overflow:auto;border-inline-end:1px solid #c7d0bc;padding-inline-end:16px}
.account-nav section+section{margin-top:26px}.account-nav h2{font:600 13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--muted);margin:8px 8px 10px}
.account-nav button{display:block;width:100%;text-align:start;min-height:44px;padding:10px 12px;margin-block:4px;font-size:15px;color:var(--forest)}
.account-nav [aria-current=page]{background:var(--forest);color:#fffef8}.account-navigation{display:none}
@media(max-width:700px){
 .community-dialog.account-workspace[open]{display:flex;gap:0}
 .account-nav{display:none}.account-navigation{display:flex;align-items:center;gap:10px;flex:none;padding-bottom:14px;border-bottom:1px solid #c7d0bc;margin-bottom:12px;font-size:14px}
 .account-navigation span{white-space:nowrap}.account-navigation select{width:100%;min-width:0;min-height:44px;background:#fffef8;border:1px solid #93a481;padding:8px;font-size:16px}
 .community-dialog:not(.auth-dialog) .space-content{padding-block:10px 20px}
}

/* Shared controls: filled commitments, outlined actions, pill-shaped person navigation.
   Utilities and selected view/account navigation remain separate from these actions. */
:root{--action-border:#82916d;--action-surface:#f0f3e8;--action-hover:#e1e8d5;--action-radius:var(--corner-radius)}
:is(.primary,.text-button,.suggestion-button,.share-copy,.share-picture-action,.share-facebook),
.community-dialog :is(.primary,.text-button),.card-views button,.card-footer button,
.share-invitation :is(a,button),.share-picture .share-actions :is(a,button){
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:44px;padding:10px 14px;border:1px solid var(--action-border);border-radius:var(--action-radius);
 background:var(--action-surface);color:var(--forest);font-size:16px;font-weight:600;line-height:1.45;
 text-align:center;text-decoration:none;overflow-wrap:anywhere;
}
.primary,.card-footer .primary,.community-dialog .primary,.share-invitation .primary,.share-picture .share-actions .primary{background:var(--forest);border-color:var(--forest);color:#fffef8}
:is(.text-button,.suggestion-button,.share-copy,.share-picture-action,.share-facebook):hover,.card-views button:hover{background:var(--action-hover)}
.primary:hover,.card-footer .primary:hover,.community-dialog .primary:hover,.share-invitation .primary:hover,.share-picture .share-actions .primary:hover{background:#3f4e24;border-color:#3f4e24}
button:disabled{cursor:default}
:is(button,a):focus-visible{outline:3px solid #98702e;outline-offset:3px}
/* Field focus stays inside the control, including at scroll-container edges. */
:is(input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.utility-button,.community-dialog .space-heading .utility-button,.toolbar .language{
 min-height:44px;padding:6px 8px;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;
}
.community-dialog .space-heading .language{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}
.card-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-block:16px 2px}
.card-footer>button:last-child:nth-child(odd){grid-column:1/-1}
.card-views{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}
.card-views button{padding:10px 8px;white-space:nowrap;min-height:44px}
.form-actions{flex-wrap:wrap}.community-dialog .form-actions :is(.primary,.text-button){margin:0}
.relative{
 display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:7px 13px;text-decoration:none;
 border:1px solid #c5cfb8;border-radius:999px;background:#f6f8f0;color:var(--forest);font-size:14px;font-weight:400;
}
.relative:hover{background:#e8edde;border-color:#82916d}
.relative-arrow{font-size:18px;line-height:1;flex:none}
.person-names{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;margin:0 0 10px}
.card .person-names h1,html[dir=rtl] .card .person-names h1{margin:0;max-width:100%;font-size:28px;line-height:1.4}
.person-names .alternate-name{font-size:24px;line-height:1.5;overflow-wrap:anywhere;max-width:100%;color:var(--forest)}
.person-names [lang=ar]{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}
.person-self{font-size:13px;font-weight:600;border-radius:var(--corner-radius);background:#e7eddb;padding:3px 9px;align-self:center}
@media(max-width:1100px){
 .toolbar .language{padding-inline:2px}
}

.spelling-note .text-button{display:flex;margin-top:6px}

/* Window dismissal: one component, fixed outside each scrollable body. */
.close-button{position:absolute;inset-block-start:10px;inset-inline-end:10px;z-index:5;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:10px;color:var(--forest)}
:is(#about,#family-space-shortcut,.close-button){border:1px solid var(--action-border);border-radius:var(--corner-radius);background:#e8edde;color:var(--forest)}
:is(#about,#family-space-shortcut,.close-button) svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:is(#about,#family-space-shortcut,.close-button):hover{background:#dce5cf;border-color:var(--forest)}
dialog.dismiss-surface{padding:20px 24px 24px;overflow:hidden;max-height:90dvh}
dialog.dismiss-surface[open]{display:flex;flex-direction:column}
.dismiss-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding-inline:4px;scroll-padding-block:16px}
.community-dialog:not(.auth-dialog) .space-heading{flex-wrap:nowrap}
.community-dialog .space-heading h1{min-width:0;overflow-wrap:anywhere}
.auth-dialog>.close-button{z-index:6}

.toolbar #language[lang=en]{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.toolbar #families{padding-inline:6px 22px;text-overflow:ellipsis}
.profile-identity{overflow-wrap:anywhere}.profile-details-form{display:grid;gap:8px}

/* Person exploration uses the same secondary action and context pattern in both views. */
.map-header #person-view{flex:1;min-width:0;flex-wrap:nowrap;gap:12px;padding:6px;border-color:var(--line);border-radius:var(--action-radius);background:var(--paper)}
#person-view .return-button{flex:none;min-height:44px;padding:10px 12px;font-size:16px;white-space:nowrap}
.return-button::before{content:'←';font-size:20px;line-height:1}
html[dir=rtl] .return-button::before{content:'→'}
.view-context{display:flex;flex-direction:column;gap:2px;min-width:0;padding-inline-end:6px}
#view-kind{padding:0;border:0;font-size:13px;line-height:1.4;font-weight:400;color:var(--muted)}
#view-person{font-size:16px;line-height:1.4;font-weight:600}
@media(max-width:700px){.map-header #person-view{gap:8px}#person-view .return-button{padding-inline:8px}}
@media(max-width:360px){.scope-view .map-navigation{flex-wrap:wrap}.scope-view #person-view{flex-basis:100%}.scope-view .connections{margin-inline-start:auto}}

/* Account display names and genealogy are distinct identities. */

.profile-unlink{margin-block:16px}

/* Compact, persistent headings share the close row; the content alone scrolls. */
.window-heading{flex:none;min-width:0;min-height:34px;padding-inline-end:44px;margin-bottom:12px}
.window-heading>.eyebrow{margin:0 0 6px}
.window-heading h1,.share-dialog .window-heading h1{font-size:28px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.window-heading .person-names{margin:0;gap:4px 12px}
.card .window-heading{padding-inline-start:4px}
.card .window-heading .person-names h1{font-size:28px}
/* Info uses the same centered tree identity as sign-in, with readable prose. */
#about-dialog .window-heading{padding-inline:0;text-align:center}
#about-logo{display:block;width:88px;height:88px;margin:0 auto 8px}
#about-dialog .window-heading>.eyebrow{font-size:12px}
#about-dialog .window-heading h1{margin:0;font-size:32px}
#about-dialog .dismiss-content{font-size:17px;line-height:1.65}
#about-dialog p,#about-dialog .feedback-note a{font-size:17px;line-height:1.65}
#about-dialog .lead{font-size:18px}
#about-dialog section>h2{font-size:22px}
#about-dialog .history-timeline h2{font-size:18px}
#about-dialog .history-date,#about-dialog .about-policy li{font-size:15px}
#about-dialog .about-entry-actions a,#about-dialog .about-entry-actions button{font-size:17px}
#about-dialog .welcome-preference{font-size:16px}
@media(max-width:600px){#about-logo{width:80px;height:80px}#about-dialog .window-heading h1{font-size:30px}}
.community-dialog:not(.auth-dialog) .space-heading{min-height:44px;padding-block:0 12px;padding-inline-end:44px}
.auth-dialog .space-heading{grid-template-columns:minmax(0,1fr)}
.auth-dialog .space-heading h1{grid-column:1/-1;text-align:center}

/* Readable contact links share email's treatment, never action-button shells. */
.contact-methods{display:grid;gap:2px;margin-block:12px}
.contact-methods .contact-method{color:var(--forest);display:flex;align-items:center;gap:9px;width:fit-content;max-width:100%;min-height:44px;line-height:1.5;margin:0;padding:0;text-decoration:underline;text-underline-offset:3px}
.contact-method span{overflow-wrap:anywhere;min-width:0}
.contact-method svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}


.person-relationship,.result-relationship{font-weight:600;color:#785b19}
.family-toggle{display:flex;gap:10px;align-items:center;min-height:44px;font-weight:600}
.family-toggle input{width:20px;height:20px;flex:none}
#key-explanation p{margin-block:0 10px}

/* Account cards align linked and plain names; actions have their own breathing room. */
.community-dialog .profile-details-form>.form-actions{justify-self:start}
.community-dialog .invitation-history{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.community-dialog .form-actions{gap:12px;margin-block:20px}

/* Compact account overview; editing and preferences are deliberate disclosures. */
.my-profile,.my-tree-place,.my-preferences{margin-block:0 24px;padding-block:0 20px;border-bottom:1px solid var(--line)}
.my-profile h2,.my-tree-place h2{margin-block:0 12px}.my-profile .profile-identity{margin-block:0 4px;font-size:20px}.my-profile .profile-role{margin-block:0 12px;color:var(--muted)}
.profile-editor{margin-top:12px}.profile-editor>summary,.my-preferences>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}.my-preferences>summary{font-size:22px}
.profile-details-form{margin-block:12px 0}.profile-details-form .space-field{margin-block:8px}.profile-details-form p{margin-block:0 8px}
.my-preferences section{padding-block:12px 18px;margin:0;border:0}.my-preferences h3{font-size:18px;margin-block:0 8px}.my-preferences p{margin-block:0 8px}
.member-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}.member-directory .account-name{display:inline-block;min-height:44px;align-content:center}.member-directory .contact-methods{margin:0}.member-directory .contact-method{margin:0;min-height:44px}.member-directory td{direction:inherit}.member-directory .account-name{unicode-bidi:plaintext}.member-directory td:first-child{white-space:nowrap}
@media(max-width:600px){.member-filters{grid-template-columns:1fr;gap:0}.member-filters .space-field{margin-block:8px}.member-directory td:first-child{white-space:normal}}

.member-editor>summary{cursor:pointer;min-height:44px;font-weight:600;padding-block:12px}.invitation-link{min-width:0;display:grid;gap:8px;justify-items:start}.invitation-link .space-field{margin:0;font-size:0;width:100%}.invitation-link input{font-size:14px;min-width:0;width:100%}.invitation-history .space-table{table-layout:fixed}.invitation-history td,.invitation-history th{overflow-wrap:anywhere}.invitation-history td{direction:inherit}.invitation-sharing{margin-bottom:24px}.invitation-form>.space-check{margin-block:16px}

/* Connection options overlay the map; the closed control occupies one compact slot. */
.connections{position:relative;padding:0!important;display:block;flex:none;white-space:nowrap}
.connections>summary{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:3px 8px;cursor:pointer;list-style:none;box-sizing:border-box}
.connections>summary::-webkit-details-marker{display:none}
.connections>summary:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
.connections-panel{position:absolute;inset-inline-end:0;top:calc(100% + 6px);width:260px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:var(--corner-radius);box-shadow:var(--shadow);white-space:normal;font-size:16px}
.connections-panel label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.connections-panel input{accent-color:var(--forest);flex:none;width:20px;height:20px;margin:0}
.connections-panel label:has(input:disabled){opacity:.65;cursor:default}
.connections-panel p{margin:8px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
@media(max-width:700px){.connections>summary{padding:3px 7px}.connections-panel{font-size:16px}}

.relationship-preview:empty{display:none}.relationship-preview .family-toggle{display:flex;gap:12px;align-items:center;margin-block:12px}

.relationship-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block:22px 12px}.relationship-actions:has(>button[hidden]){display:none}.suggested-children section{border:1px solid var(--line);border-radius:var(--corner-radius);padding:14px;margin-block:18px}.relationship-preview h2{font-size:18px}.relationship-preview .family-toggle small{display:block;font-weight:400;line-height:1.5;margin-top:4px}.relationship-preview .family-toggle input{flex:none}.selected-context{margin-top:-8px}

/* The map count belongs behind an open card, never over its title or close control. */
body.has-card .map-header .map-caption{visibility:hidden}

/* Inset native-select replacement chevrons in both writing directions. */
.card select,.focus-options>select{appearance:none;padding-inline-end:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%234b5b2b' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
html[dir=rtl] .card select{background-position:left 12px center}
.card-scroll{padding-block-end:4px}

/* Compact mobile chrome: reduce empty space, preserve 44 px touch targets. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--control-height:44px}
@media(max-width:700px){
 .map-header{top:max(6px,env(safe-area-inset-top));gap:var(--space-1)}
 .map-header .toolbar{padding:var(--space-1) var(--space-2);row-gap:2px}
 .toolbar .brand img{width:32px;height:32px}
 .map-navigation{gap:var(--space-1)}
 .map-header .layout-bar{padding:2px}
 .layout-bar button{padding:0 8px;min-height:var(--control-height)}
 .connections>summary{padding-block:0;min-height:var(--control-height)}
 .community-dialog.account-workspace{padding:var(--space-3)}
 .community-dialog.account-workspace .space-heading,.account-navigation>span{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;overflow:hidden;clip-path:inset(50%)}
 .account-navigation{padding:0 54px var(--space-2) 0;margin:0;border:0;min-height:52px}
 [dir=rtl] .account-navigation{padding:0 0 var(--space-2) 54px}
 .account-navigation select{height:var(--control-height);padding-block:6px}
 .community-dialog.account-workspace>.close-button{top:var(--space-3);inset-inline-end:var(--space-3)}
 .community-dialog.account-workspace .space-content{padding:var(--space-2) 2px var(--space-4);border-top:1px solid var(--line)}
 .community-dialog.account-workspace .space-content>p:first-child{margin-top:0}
}

/* Shared working surfaces: compact rhythm, readable controls, one scroll owner.
   Entry surfaces deliberately retain their centered tree identity. */
:is(.account-workspace,.card) .help{font-size:14px;line-height:1.5}
.account-workspace .space-content>p{margin-block:0 var(--space-3)}
.account-workspace .space-content :is(h2,h3){line-height:1.3;margin-block:var(--space-4) var(--space-2)}
.account-workspace .space-content h2{font-size:22px}
.account-workspace .space-content h3{font-size:18px}
.account-workspace .space-field{font-size:14px;margin-block:0 var(--space-4)}
.account-workspace .space-field :is(input,select,textarea){font-size:16px;margin-top:var(--space-1);padding-block:10px;min-height:var(--control-height)}
.account-workspace .space-content>form{margin-block:var(--space-4)}
.account-workspace .form-actions,.card .form-actions,.relationship-actions{flex-wrap:wrap;gap:var(--space-2);margin-block:var(--space-4)}
.account-workspace .form-actions>:is(button,a),.card .form-actions>button{max-width:100%;white-space:normal}
.account-workspace .member-filters{gap:var(--space-2) var(--space-3);margin-block:var(--space-4);align-items:end}
.account-workspace .member-filters .space-field{margin:0;min-width:0}
.account-workspace .space-table{margin-block:var(--space-2) var(--space-4)}
.account-workspace .space-table :is(th,td){padding:var(--space-2) var(--space-3);line-height:1.5}
.account-workspace :is(.my-profile,.my-tree-place,.my-preferences){margin-block:0 var(--space-4);padding-block:0 var(--space-4)}
.account-workspace :is(.my-profile,.my-tree-place)>h2{margin-top:0}
.account-workspace .my-preferences>summary{font-size:20px}
.account-workspace .my-preferences section{padding-block:var(--space-3)}
.account-workspace .profile-details-form{gap:var(--space-2)}
.account-workspace .profile-details-form>.space-field{margin:0}
.account-workspace .profile-details-form>.form-actions{margin-bottom:0}
.person-form>label,.person-form>.person-field-label{margin-block:var(--space-4) var(--space-1);line-height:1.5}
.bilingual-place{margin-block:var(--space-4);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--corner-radius)}
.bilingual-place>label:first-child{margin-top:0}
.person-form .help:empty{display:none}
.card .form-actions{margin-bottom:0;padding-block:var(--space-2);padding-bottom:max(var(--space-2),env(safe-area-inset-bottom))}
:is(.space-content,.card-scroll,.dismiss-content){scroll-padding-block:var(--space-4)}
@media(max-width:900px){
 .account-workspace .space-table td{grid-template-columns:minmax(80px,30%) minmax(0,1fr);gap:var(--space-2);padding:var(--space-1) 2px}
 .account-workspace .space-table tr{padding-block:var(--space-3)}
}
/* Short screens retain the welcoming center without pushing the task away. */
@media(max-height:650px){
 .auth-dialog .space-heading .signin-logo,#about-logo{width:56px;height:56px;margin-bottom:var(--space-1)}
 .auth-dialog .space-heading,#about-dialog .window-heading{padding-bottom:var(--space-2);margin-bottom:var(--space-2)}
}

/* Search results use the phone's available width, not the narrow input column. */
#results{overscroll-behavior:contain;scroll-padding-block:8px}
#results>.help{margin:0;padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px}
#results .result{padding:10px 12px;line-height:1.4;min-height:44px}
#results .result small{font-size:14px;line-height:1.4}
#results>button:not(.result){min-height:44px;width:100%}
@media(max-width:700px){#results{position:fixed;inset-inline:auto;min-width:0;max-width:calc(100vw - 20px)}}

/* Translation stays editable; the target shows progress without shifting the form. */
.place-translating::after{content:"";display:inline-block;width:.8em;height:.8em;margin-inline-start:.5em;border:2px solid var(--line);border-top-color:var(--forest);border-radius:50%;vertical-align:middle;animation:place-translation-spin .8s linear infinite}
@keyframes place-translation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.place-translating::after{animation:none}}

/* Focus is a scoped reading view, with one compact settings disclosure. */
#focus-controls{margin-inline-start:auto;flex:none}
#focus-controls>summary{cursor:pointer;list-style:none;min-height:44px;display:flex;align-items:center;gap:5px;padding:6px 10px;font-size:14px;border:1px solid var(--line);border-radius:var(--corner-radius)}
#focus-controls>summary::after{content:'⌄'}
#focus-controls>summary::-webkit-details-marker{display:none}
.focus-options{position:absolute;inset-inline-end:0;top:calc(100% + 6px);width:290px;max-width:calc(100vw - 24px);padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:var(--corner-radius);box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);gap:10px;max-height:55dvh;overflow:auto;z-index:10}
.focus-options>label{align-self:center;font-size:15px}
.focus-options>select{width:100%;min-height:44px;background-color:var(--paper);border:1px solid var(--line);padding:6px;padding-inline:10px 30px;background-position:right 12px center}
[dir="rtl"] .focus-options>select{background-position:left 12px center}
.focus-options>p{grid-column:1/-1;margin:0;font-size:13px;color:var(--muted)}
.focus-options .connections-panel{grid-column:1/-1;position:static;display:grid;width:100%;min-width:0;max-width:100%;padding:8px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;gap:0}
.focus-options .connections-panel label{min-height:44px;padding:4px 0;font-size:14px}
.focus-options .connections-panel p{margin:4px 0 0;font-size:12px;line-height:1.4}
.family-focus #person-view .view-context{flex:1;min-width:0}
.family-focus #view-person{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.family-focus .map-header #person-view{gap:6px;padding:3px}.family-focus #person-view .return-button{padding-inline:7px;font-size:14px}.family-focus #view-kind{font-size:11px}.family-focus #view-person{font-size:14px}#focus-controls>summary{padding-inline:7px;font-size:13px}.family-focus .map-navigation{flex-wrap:nowrap}}

/* Read-only generation guides sit beneath the graph and never intercept gestures. */
body.ancestor-grid #workspace{background:radial-gradient(ellipse at 45% 38%,#f7f7f0 0%,#f0f1e9 74%)}
body.ancestor-grid #map{background:transparent}
#generation-guides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

.language-alternative{margin-block-start:12px}.language-alternative>summary{font-size:13px;color:var(--muted);cursor:pointer;min-height:36px;padding-block:8px}.language-alternative>input{width:100%}.person-form .bilingual-place{border:0;padding:0}.paternal-help{margin-block:8px 12px}.contribution-help{padding:10px 12px;background:#eef1e6;border-radius:var(--corner-radius)}
.join-fields{grid-template-columns:minmax(0,.9fr) minmax(0,1fr)}.join-fields .field-label{white-space:normal}.join-fields>.space-check,.join-fields>.help{grid-column:1/-1}.joining .join-fields .space-check{min-height:44px;align-items:center;margin:0}.joining .join-fields input[type=checkbox]{min-height:22px;width:22px;padding:0;flex-shrink:0}
@media(max-width:600px){.join-fields{grid-template-columns:minmax(0,1fr);gap:12px}.joining .join-fields .space-field{display:flex;flex-direction:column;align-items:stretch;gap:6px}.joining .join-fields .space-check{font-size:13px}.joining .join-fields>.help{margin:0}}

.contribution-actions .submission-feedback{flex:0 0 100%;margin:0;overflow-wrap:anywhere;max-height:28dvh;overflow:auto}.contribution-actions .submission-feedback:empty{display:none}.contribution-actions .error p{margin:0 0 4px}.contribution-actions{z-index:2}.contribution-actions .error:focus{outline:none}
.place-results{display:grid;gap:0;max-height:240px;overflow-y:auto;border:1px solid #b9c2ad;border-radius:var(--corner-radius);background:#fffef8;margin-block:8px;min-width:0}
.place-results[hidden]{display:none}
.place-results button{display:grid;text-align:start;gap:3px;min-height:48px;padding:9px 12px;border:0;border-radius:0;border-bottom:1px solid #e4e7dd;background:transparent;white-space:normal;overflow-wrap:anywhere}
.place-results button:last-child{border-bottom:0}
.place-results button[aria-selected=true],.place-results button:hover{background:#edf0e4}
.place-results button span{font-size:13px;line-height:1.4;font-weight:normal}
.place-search-status:empty{display:none}

.place-attribution{font-size:12px}.place-attribution a{color:inherit;text-underline-offset:2px}
/* Steward review: one queue and one detail pane; the map keeps its existing assets. */
.review-workspace{display:flex;flex-direction:column;overflow:hidden!important;gap:12px}
.review-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.review-toolbar .help{margin-inline-start:auto}
.review-layout{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;gap:16px}
.review-layout.review-open{display:block}.review-open .review-list{display:none}.review-open .review-panel{height:100%}.review-workspace.reviewing .review-toolbar{display:none}
.review-list{min-width:0;min-height:0;overflow:hidden}.review-grid{height:100%;min-height:240px}
.review-panel{min-width:0;overflow:auto;overscroll-behavior:contain;padding:0 4px 16px}
.review-panel[hidden]{display:none}.review-panel .request-detail{margin:12px 0;padding:16px}
.review-panel .request-detail>header strong{font-size:20px}.review-panel .request-detail>header{gap:6px}
.review-panel .space-table{table-layout:fixed;width:100%}.review-panel .space-table td{overflow-wrap:anywhere}
.review-panel .form-actions{position:static;background:var(--paper,#f8f8f1);padding:8px 0;margin-bottom:0}
.review-prerequisites{padding:12px;background:#eef0e5;border-radius:9px}.review-prerequisites p{margin:0 0 8px}.review-prerequisites ol{padding-inline-start:22px}
.review-message{margin-top:12px}.review-message summary{cursor:pointer}.review-message textarea{min-height:90px}
.review-grid.tabulator{font-family:inherit;font-size:15px;background:transparent;border:1px solid #d6ddce;border-radius:9px;color:var(--forest)}
.review-grid.tabulator .tabulator-header{background:#e9ede1;border:0;color:var(--forest);font-family:inherit}
.review-grid.tabulator .tabulator-header .tabulator-col{background:transparent;border:0}
.review-grid.tabulator .tabulator-header .tabulator-col .tabulator-col-content{padding:10px 8px}
.review-grid.tabulator .tabulator-tableholder .tabulator-table{background:transparent;color:var(--forest)}
.review-grid .tabulator-row,.review-grid .tabulator-row.tabulator-row-even{background:#fffef8;border-bottom:1px solid #d6ddce;min-height:44px}
.review-grid .tabulator-row.review-selected{background:#e8eddd}.review-grid .tabulator-row:hover{background:#f0f2e8}
.review-grid .tabulator-row .tabulator-cell{border:0;padding:10px 8px;white-space:nowrap;text-overflow:ellipsis}
.review-grid .tabulator-col-title{white-space:nowrap!important}.review-grid .tabulator-header-filter input{width:100%;min-width:0;min-height:36px;padding:5px!important;border:1px solid #cbd3c2!important;border-radius:5px;font:inherit;color:var(--forest);background:#fffef8}
.review-person{padding:0;min-height:24px;background:none;border:0;text-align:start;font:inherit;font-weight:650;color:inherit;cursor:pointer}.review-person:hover{text-decoration:underline}
.review-grid .tabulator-responsive-collapse{padding:8px 12px}.review-grid .tabulator-responsive-collapse table{width:100%}.review-grid .tabulator-responsive-collapse td{padding:4px;overflow-wrap:anywhere}
@media(max-width:1100px){.review-layout.review-open{display:block}.review-open .review-list{display:none}.review-open .review-panel{height:100%}.review-grid{min-height:240px}.review-toolbar button{min-height:44px}.review-person{min-height:32px}.review-grid .tabulator-header-filter input{min-height:44px}.review-panel .request-detail{padding:12px}.review-toolbar .help{width:100%;margin:0}}
.review-mobile-controls{display:none;width:100%;gap:8px}.review-mobile-controls :is(input,select){min-width:0;max-width:100%;min-height:44px;font:inherit;color:inherit;background:#fffef8;border:1px solid #cbd3c2;border-radius:9px;padding:8px;margin:0}
@media(max-width:1100px){.review-mobile-controls{display:grid;grid-template-columns:110px minmax(0,1fr)}.review-mobile-controls select:last-child{grid-column:1/-1}.review-grid .tabulator-header-filter{display:none!important}}

@media(max-width:1100px){.review-workspace.reviewing .review-toolbar{display:none}}

.review-editor{display:grid;gap:16px}.review-editor label{display:grid;gap:6px}.review-editor input,.review-editor select{width:100%;min-width:0;min-height:44px;font:inherit}.review-editor fieldset{border:1px solid #d6ddce;border-radius:9px;min-width:0;padding:16px}.review-editor legend{font-weight:650}.review-editor .review-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.review-editor .form-actions{grid-column:1/-1}.review-preview{border-top:1px solid #d6ddce;padding-top:16px}.review-preview:empty{display:none}.review-related{margin:12px 0}.review-related summary,.review-prerequisites summary{cursor:pointer}.review-editor .review-check{display:flex;align-items:center;gap:8px}.review-editor .review-check input{width:20px}.review-editor .review-children{max-height:200px;overflow:auto}.review-panel>.text-button{min-height:44px}@media(max-width:600px){.review-editor .review-fields{grid-template-columns:1fr}.review-editor fieldset{padding:10px}.review-panel .request-detail{border:0;padding:8px 0}.review-panel .form-actions{flex-wrap:wrap}}

.review-editor input:not([type=checkbox]),.review-editor select{box-sizing:border-box;padding:10px 12px;background:#fffef8;color:var(--forest);border:1px solid #9daea0;border-radius:var(--corner-radius);font-size:16px}.review-editor input[type=checkbox]{accent-color:var(--forest)}

.review-comparison{width:100%;border-collapse:collapse;table-layout:fixed}.review-comparison th,.review-comparison td{padding:12px;text-align:start;border-bottom:1px solid #d6ddce;vertical-align:top;overflow-wrap:anywhere}.review-comparison thead{background:#e9ede1}.review-comparison th:first-child{width:25%}.review-comparison th:nth-child(2){width:25%}.review-comparison tbody th{font-weight:550}.review-before{color:#67715e}.review-after input,.review-after select{display:block}.review-keep{display:block;background:none;border:0;padding:4px 0;min-height:36px;font-size:13px;text-decoration:underline;color:var(--forest);cursor:pointer}.review-keep:disabled{opacity:.45;text-decoration:none;cursor:default}.review-more summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.review-more textarea{width:100%;box-sizing:border-box;min-height:80px}.review-feedback:empty{display:none}
@media(max-width:600px){.review-comparison thead{display:none}.review-comparison,.review-comparison tbody,.review-comparison tr{display:block}.review-comparison tr{padding:12px 0;border-bottom:1px solid #d6ddce}.review-comparison th,.review-comparison td{display:block;box-sizing:border-box;width:100%!important;border:0;padding:4px 0}.review-comparison td::before{content:attr(data-label);display:block;font-size:12px;color:#67715e;margin-bottom:4px}.review-comparison .review-before{font-size:14px}.review-keep{min-height:44px}.review-editor{gap:8px}}

.name-help-button{display:inline-flex;align-items:center;justify-content:center;width:26px;min-height:26px;margin-inline-start:3px;padding:0;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:normal;opacity:.65}.name-help-button:hover,.name-help-button:focus-visible{opacity:1}.name-tooltip{position:fixed;inset:auto;margin:0;width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:12px;border:1px solid var(--line);border-radius:var(--corner-radius);background:var(--paper);box-shadow:var(--shadow);color:var(--forest);font-size:14px;font-weight:normal;line-height:1.5}.name-suggestion{display:block;font-size:13px;text-align:start;overflow-wrap:anywhere}
.person-form input::placeholder,.review-editor input::placeholder{color:var(--muted);opacity:.6}.redundant-family{font-size:14px}.redundant-family button{display:block}

.name-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(65px,.65fr);gap:8px;align-items:center;min-width:0}.name-pair>input{width:100%;min-width:0}.name-preview{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.name-preview>span{overflow-wrap:anywhere;font-size:14px;color:var(--muted)}.name-preview-edit,.name-update-prompt button{padding:4px 6px;min-height:32px;font-size:12px;background:transparent;border:0;text-decoration:underline}.name-update-prompt{font-size:13px;color:var(--muted);padding-block:6px}.name-update-prompt>span{display:block}.review-comparison tr[hidden]{display:none}.name-pair+details>summary[hidden]{display:none}

.card-collapse{display:none}@media(max-width:700px){.card-collapse{display:block;position:absolute;inset-block-start:10px;inset-inline-end:60px;width:44px;height:44px;padding:0;font-size:24px}.card:has(.card-collapse) .window-heading{padding-inline-end:94px}.card.collapsed{padding:14px 16px;min-height:64px;max-height:64px}.card.collapsed .card-scroll,.card.collapsed .eyebrow,.card.collapsed .alternate-name,.card.collapsed .person-self{display:none}.card.collapsed .window-heading{margin:0;min-height:34px;display:flex;align-items:center}.card.collapsed .person-names{min-width:0;display:block}.card.collapsed .window-heading .person-names h1{font:600 18px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',Tahoma,Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

#about-dialog #app-version{font-size:12px;color:var(--muted);margin:18px 0 0;text-align:center}
.name-preview-edit{flex:none;white-space:nowrap}
.language-status{display:block;font-size:12px;color:var(--muted)}.language-status:empty{display:none}.name-update-prompt button{display:inline-block;width:auto;margin-inline-end:12px}

.name-pair>.place-results,.name-pair>.place-search-status{grid-column:1/-1}

.spouse-surname{display:grid;gap:8px;margin:10px 0}.spouse-surname label{display:flex;align-items:center;gap:10px;min-height:44px}.spouse-surname input[type=checkbox]{width:20px;height:20px;flex:0 0 20px}.spouse-surname small{color:var(--muted);line-height:1.5}.spouse-surname select{max-width:100%}
.review-duplicates{padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:var(--corner-radius);background:var(--canvas)}.duplicate-candidate{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:8px 0}.duplicate-candidate small{flex:1;min-width:120px}.review-duplicates label{display:flex;align-items:center;gap:10px;min-height:44px}.review-duplicates input[type=checkbox]{width:20px;height:20px;flex:0 0 20px}.review-duplicates select{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:var(--corner-radius);background:var(--paper)}.review-duplicates td{overflow-wrap:anywhere}.review-duplicates .primary{margin-top:12px}@media(max-width:600px){.review-duplicates table,.review-duplicates tbody,.review-duplicates tr,.review-duplicates th,.review-duplicates td{display:block}.review-duplicates thead{display:none}}

.name-pair:has(input:disabled) .name-preview-edit{display:none}

/* Shared code/passkey controls for the map and simple family interface. */
.auth-code-form{display:grid;gap:16px;margin-block:20px}.auth-code{font-size:28px;letter-spacing:.25em;text-align:center;max-width:100%;box-sizing:border-box}.auth-passkey-offer{position:fixed;z-index:10000;inset-inline:16px;bottom:16px;max-width:480px;margin-inline:auto;padding:20px;background:#fffef9;color:#263d2b;border:1px solid #94a38b;border-radius:12px;box-shadow:0 4px 24px #0002}.auth-passkey-offer .form-actions{display:flex;flex-wrap:wrap;gap:12px}.passkey-settings{margin-block:24px;padding-block:16px;border-block:1px solid #c8cfbf}

#development-progress{margin-bottom:4px}#development-progress+#app-version{margin-top:4px;font-size:12px}

/* Layout tabs get their own mobile row; secondary navigation never squeezes them offscreen. */
@media(max-width:700px){.map-header .map-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.map-header .layout-bar,.map-header #person-view{grid-column:1/-1;width:100%;box-sizing:border-box}.map-header .layout-bar button{flex:1 1 0;min-width:0}.map-header .connections,.map-header .explore-menu{min-width:0;justify-content:center;text-align:center;box-sizing:border-box}.map-header .connections>summary{white-space:normal}}

.combine-identities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-block:16px}.combine-identities>div{padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:var(--corner-radius);overflow-wrap:anywhere}.combine-identities small{display:block;margin-top:6px}.combine-choice{min-width:0;margin-block:16px;padding:12px;border:1px solid var(--line);border-radius:var(--corner-radius)}.combine-choice legend{font-weight:600;padding-inline:4px}@media(max-width:600px){.combine-identities{grid-template-columns:1fr}}

.combine-choice label{padding:10px;margin-block:8px;background:var(--paper);border:1px solid var(--line);border-radius:var(--corner-radius);cursor:pointer;align-items:flex-start}.combine-choice label:has(input:checked){border-color:var(--forest);background:#e8efdf}.combine-choice input[type=radio]{flex:0 0 22px;width:22px;height:22px;margin:4px 0;accent-color:var(--forest)}.combine-choice span{min-width:0;overflow-wrap:anywhere}.combine-choice strong,.combine-choice small{display:block}.combine-choice small{font-weight:400;margin-top:4px}

.review-grid .tabulator-row .tabulator-cell[tabulator-field=status]{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}

.error-reference{display:block;margin-block-start:.5rem;font-size:.85em;overflow-wrap:anywhere}

/* Read-only person facts: one label/value pair, not repeated table headings. */
:is(.family-album,.account-workspace) .request-detail .detail-table{display:block;width:100%;table-layout:auto;margin-block:12px 20px}
:is(.family-album,.account-workspace) .request-detail .detail-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
:is(.family-album,.account-workspace) .request-detail .detail-table tbody{display:block;width:100%;padding:0}
:is(.family-album,.account-workspace) .request-detail .detail-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:16px;width:100%;padding:12px 0;border-bottom:1px solid #d3dacb}
:is(.family-album,.account-workspace) .request-detail .detail-table td{display:block;width:auto!important;min-width:0;max-width:none;padding:0;border:0;text-align:match-parent;overflow-wrap:anywhere;line-height:1.5}
:is(.family-album,.account-workspace) .request-detail .detail-table td:first-child{font-weight:600;color:#50624e}
:is(.family-album,.account-workspace) .request-detail .detail-table td::before{display:none;content:none}
@media(max-width:480px){:is(.family-album,.account-workspace) .request-detail .detail-table tr{grid-template-columns:minmax(0,1fr);gap:4px;padding:12px 0}}
.family-album .request-detail .space-table{font-size:20px}
/* Keep genuine before/after comparisons readable alongside the fact rows. */
.family-album .request-detail .space-table:not(.detail-table) tbody{padding:0}
.family-album .request-detail .space-table:not(.detail-table) td{max-width:none;min-width:0;border:0;padding:4px 0}
@media(min-width:601px){
.family-album .request-detail .space-table:not(.detail-table) thead{display:block}
.family-album .request-detail .space-table:not(.detail-table) tr{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:16px;padding:12px 0}
.family-album .request-detail .space-table:not(.detail-table) th{padding:0;font-size:18px}
.family-album .request-detail .space-table:not(.detail-table) td::before{display:none}
}
@media(max-width:600px){.family-album .request-detail .space-table:not(.detail-table) td:first-child{font-weight:600}.family-album .request-detail .space-table:not(.detail-table) td:first-child::before{display:none}}

/* Place choices belong to their input, before translation and review actions. */
.name-pair:has(>.place-results){grid-template-columns:minmax(0,1fr)}
.name-pair:has(>.place-results)>.name-preview{justify-content:flex-start;flex-wrap:wrap;gap:8px}
.name-pair:has(>.place-results)>.name-preview>span{flex:1 1 100%}
.name-pair .review-keep{margin:0}
.place-results button strong,.place-results button span{display:block}
.name-update-prompt{display:flex;flex-wrap:wrap;gap:8px}
.name-update-prompt[hidden]{display:none}
.name-update-prompt>span{flex-basis:100%}
.name-update-prompt button{margin:0}


/* Mobile Connections occupies the first navigation column; open inward in both languages. */
@media(max-width:700px){.map-header .connections-panel{inset-inline-start:0;inset-inline-end:auto}}

/* One bilingual-field hierarchy across names, places and review forms. */
.name-pair{grid-template-columns:minmax(0,1fr)}
.name-preview{justify-content:flex-start;flex-wrap:wrap;gap:8px}
.name-preview>span{flex:1 1 100%;font-size:16px}
.name-preview-edit,.name-pair .review-keep{min-height:44px;padding:8px 10px;font-size:14px}
.name-update-prompt{padding:12px;margin-block:8px;border:1px solid #c6ceba;border-radius:8px;background:#eef2e7;color:var(--forest);font-size:16px;line-height:1.5}
.translation-suggestion{display:grid!important;gap:4px;min-width:0}
.translation-value{display:block;overflow-wrap:anywhere;text-align:start}
.translation-hint{font-size:14px;color:var(--muted)}
.translation-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:420px}.translation-actions button{min-width:0;white-space:normal}
.name-update-prompt button{min-height:44px;padding:8px 12px;font-size:15px;border:1px solid #93a481;border-radius:6px;background:#fffef8;text-decoration:none}
.name-update-prompt .name-suggestion{background:var(--forest);color:#fffef8}
.account-nav section{padding:8px;background:#eef1e7;border:1px solid #d7decd;border-radius:9px}
.account-nav section+section{margin-top:14px}
.account-nav h2{font-size:14px;color:var(--forest);padding:4px 4px 8px;border-bottom:1px solid #c7d0bc;margin:0 0 6px}

/* Site destinations are separate from map layout choices. */
.explore-menu{position:relative;pointer-events:auto;min-width:0}.explore-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 16px;border:1px solid var(--line);border-radius:var(--corner-radius);background:var(--paper);cursor:pointer;list-style:none}.explore-menu>summary::after{content:'⌄'}.explore-links{position:absolute;inset-inline-end:0;top:calc(100% + 6px);min-width:210px;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:var(--corner-radius);box-shadow:0 5px 16px #263e2e22;z-index:5}.explore-links a:not([hidden]){display:flex;align-items:center;min-height:44px;padding:8px 12px;color:var(--forest);text-decoration:none;border-radius:6px}.explore-links a:hover{background:#e7ecdf}.explore-menu summary:focus-visible,.explore-links a:focus-visible{outline:2px solid var(--forest);outline-offset:2px}
