:root {
  color-scheme:light;
  --surface:#fff; --page:#f5f7f2; --ink:#182820; --muted:#53675c; --forest:#194635;
  --dark:#0d2a21; --line:#dbe4da; --sage:#e9f1e7; --gold:#e3bd7b;
  --trace-red:#b62c29; --trace-halo:#ffe1d2;
  --font:"Noto Sans Arabic",Tahoma,Arial,sans-serif; --title:"Reem Kufi",var(--font);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;background:var(--page);color:var(--ink);font:1rem/1.75 var(--font);min-width:320px}
button,input,textarea,select{font:inherit}
a{color:inherit}
button{cursor:pointer;color:inherit}
button:disabled{cursor:wait;opacity:.58}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #ab6b25;outline-offset:3px}
[hidden]{display:none!important}
i[data-icon]{display:inline-flex;flex:none;align-items:center;justify-content:center;width:1.2em;height:1.2em;font-style:normal}
i[data-icon] svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}
.layout{width:min(1312px,calc(100% - 84px));margin-inline:auto}
.skip{position:fixed;top:10px;inset-inline-start:10px;z-index:12;padding:10px 20px;background:white;border-radius:8px;clip-path:inset(50%)}
.skip:focus{clip-path:none}
.topbar{background:var(--surface);border-bottom:1px solid #e0e8e0}
.top-inner{display:flex;justify-content:space-between;align-items:center;gap:14px}
.top-inner{min-height:74px}
.identity{display:flex;align-items:center;gap:11px;text-decoration:none;line-height:1.2}
.identity strong{display:block;font:700 1.29rem/1.22 var(--title)}
.identity small{display:block;margin-top:5px;color:var(--muted);font-size:.77rem}
.site-footer{color:#fffbef;background:linear-gradient(115deg,#0b281f,#14392d);border-block-start:1px solid #a38b5e}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-block:3px}
.footer-identity,.footer-credit,.footer-identity>div{display:flex;align-items:center;gap:6px;white-space:nowrap}
.footer-identity img{width:22px;height:22px;flex:none}
.footer-identity strong{font:700 .92rem/1.3 var(--title)}
.footer-identity span,.footer-credit>span{color:#c9d9cb;font-size:.71rem;line-height:1.3}
.footer-maker{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:2px 6px;border:1px solid #c2d5bd45;border-radius:6px;background:#ffffff08;color:#fff3dd;text-decoration:none}
.footer-maker:hover{background:#ffffff16;border-color:#d8bc83}
.footer-maker:focus-visible{outline-color:var(--gold)}
.footer-maker img{display:block;width:27px;height:23px;object-fit:contain}
.footer-maker strong{font:700 .91rem/1.24 var(--title)}
.footer-maker i[data-icon]{font-size:.67rem;color:#d8bd8d}
@media(max-width:650px){
  .footer-identity span{display:none}
}
.top-actions{display:flex;align-items:center;gap:8px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 16px;min-height:42px;border:1px solid transparent;border-radius:8px;text-decoration:none;font-size:.9rem;font-weight:700;line-height:1.35}
.button.primary{background:var(--forest);color:#fff}
.button.primary:hover{background:#286149}
.button.quiet{background:transparent;color:#294e3b}
.button.quiet:hover,.button.outline:hover{background:#eaf1e8}
.button.outline{background:white;color:#234a39;border-color:#d2e0d2}
.hero{position:relative;isolation:isolate;overflow:hidden;background:#09271f;color:#fffaf0;border-bottom:3px solid #ae8453}
.hero-art{position:absolute;inset-block:0;inset-inline-end:0;z-index:-1;width:min(1000px,74vw);background:url("/assets/hero.webp") left center / cover no-repeat;mask-image:linear-gradient(90deg,#000 0%,#000 60%,transparent 100%);opacity:.98}
.hero-inner{min-height:292px;padding-block:34px 36px;position:relative;display:flex;align-items:end;justify-content:space-between;gap:18px}
.hero-copy{align-self:center}
.eyebrow{display:flex;align-items:center;gap:8px;color:#efcea0;font-weight:600;font-size:.86rem;margin:0 0 8px}
.eyebrow span{height:1px;width:25px;background:#e3bd7b}
.hero h1{font:700 clamp(3.2rem,6.2vw,5.7rem)/1.13 var(--title);margin:0}
.hero-description{margin:7px 0 24px;color:#d7ebdb;font-size:clamp(1rem,2vw,1.26rem)}
.hero-link{color:#1f2a20;background:#edc88d;border-color:#edc88d}
.hero-link:hover{background:#ffdb9f}
.hero-facts{display:flex;align-items:center;gap:18px;background:#0b2b22d9;border:1px solid #ffffff43;border-radius:9px;padding:9px 17px 11px;min-width:max-content}
.hero-facts div{display:grid;justify-items:center;gap:1px;padding-inline:5px}
.hero-facts div+div{border-inline-start:1px solid #ffffff3d;padding-inline-start:19px}
.hero-facts strong{font-weight:750;font-size:1.45rem;line-height:1.3;color:#efcd99}
.hero-facts span{color:#e5ede6;font-size:.82rem}
.explore{padding-block-start:28px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
h2,h3,p{margin:0}
.section-head h2{font:700 clamp(1.45rem,2.8vw,2.05rem)/1.32 var(--title)}
.section-head p{margin-top:4px;color:var(--muted);font-size:.93rem}
.tree-search{position:relative;flex:0 0 min(330px,38%);display:flex;align-items:center;gap:7px;background:white;border:1px solid #d5e0d4;border-radius:9px;padding-inline:13px;color:#577469}
.tree-search:focus-within{border-color:#6e9b86}
.tree-search input{min-width:0;width:100%;border:none;background:transparent;color:var(--ink);font-size:.96rem;padding-block:8px}
.tree-search input:focus-visible{outline:none}
.search-results{position:absolute;inset:calc(100% + 7px) -1px auto;box-shadow:0 14px 30px #19342620;z-index:6;padding:6px;border:1px solid var(--line);background:white;border-radius:10px;max-height:270px;overflow:auto}
.search-results button{display:block;width:100%;padding:7px 9px;background:white;text-align:start;border:0;border-radius:6px}
.search-results button:hover,.search-results button:focus{background:#edf4eb}
.search-results small,.search-results p{display:block;font-size:.85rem;color:var(--muted)}
.search-results p{padding:8px}
.chart-panel{min-width:0;padding-block-end:clamp(16px,3vw,32px)}
.design-chooser{display:grid;gap:9px;margin-block-start:7px;padding:13px 16px;background:#fff;border:1px solid var(--line);border-radius:13px}
.design-chooser h3{margin:0;color:#203f31;font:700 1.2rem/1.35 var(--title)}
.design-chooser p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.65}
.design-chooser a{display:inline-block;color:#315742;font-weight:700;text-underline-offset:3px}
.design-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:min(100%,640px)}
.design-option{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 8px;border:1px solid #e0e8dc;border-radius:8px;background:#fbfcf8;color:#365344;font-weight:700;font-size:.89rem;text-align:center;line-height:1.35}
.design-option:hover{background:#f0f5eb}
.design-option[aria-pressed="true"]{border-color:#64896f;background:#eaf3e8;color:#153c27}
.design-swatch{width:24px;height:24px;flex:none;border:1px solid #183a2126;border-radius:50%;background:linear-gradient(155deg,#dbe9cb,#87ad72)}
.manuscript-swatch{background:linear-gradient(155deg,#edddac,#be945f)}
.fan-swatch{background:linear-gradient(155deg,#d3e9dc,#82b3a3)}
.design-studio-link{justify-self:start;min-height:36px;text-decoration:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.design-authoring :is(.hero,.explore-info,.chart-chrome){display:none}
.design-authoring .explore{padding-block-start:14px}
.design-studio{position:sticky;top:6px;z-index:9;display:grid;gap:9px;padding:13px 16px;margin-block-end:10px;border:1px solid #cddccc;border-radius:12px;background:#fffffc;box-shadow:0 4px 16px #243c2b13;scroll-margin-top:6px}
.design-studio-heading,.design-studio-tools,.design-edit-actions,.design-leaf-tools,.design-rotation{display:flex;align-items:center;gap:8px}
.design-studio-heading,.design-studio-tools{justify-content:space-between}
.design-studio-heading h3{font:700 clamp(1.18rem,2.1vw,1.45rem)/1.32 var(--title)}
#design-studio-count,.design-studio-hint,.design-studio-status{color:var(--muted);font-size:.82rem}
.design-studio-heading .tree-search{flex-basis:min(320px,44%)}
.design-studio-heading #design-exit{margin-inline-start:auto;flex:none}
.review-layout-editor,.trunk-actions{display:flex;gap:7px;flex-wrap:wrap;margin-block:9px}
.review-layout-editor:not(:has(>:not([hidden]))){display:none}
.review-layout-editor .button,.trunk-actions .button{min-height:38px;padding:6px 10px}
.button.danger-outline{color:#8c372b;border-color:#dec3ba;background:#fff8f5}
.button.danger-outline:hover{background:#f9eae5}
.button.danger{color:#fff;background:#913c30}
.button.danger:hover{background:#702c23}
#trunk-dialog>label{margin-block-start:12px}
#trunk-relation{margin-block-start:5px}
#trunk-insert-form{border-block-start:1px solid var(--line);padding-block-start:10px}
.tree-delete-names{margin-block-start:10px;padding:8px 10px;border:1px solid #ead5ce;border-radius:7px;background:#fff9f6}
.tree-delete-names summary{cursor:pointer;color:#7b352a;font-weight:700}
.tree-delete-names ul{max-height:12rem;overflow:auto;margin:6px 0;padding-inline-start:25px;font-size:.9rem}
dialog .permission-toggle{display:flex;align-items:center;gap:8px}
dialog .permission-toggle input[type=checkbox]{width:18px;min-height:18px;margin:0;padding:0;flex:none;accent-color:var(--forest)}
#design-automatic{min-height:36px;padding:4px 8px;font-size:.8rem}
.design-studio-tools,.design-edit-actions,.design-leaf-tools{flex-wrap:wrap}
.design-leaf-tools{border:0;min-inline-size:0;margin:0;padding:0}
#design-leaf-name{max-inline-size:min(28vw,210px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#243f30;font-weight:700}
.design-rotation{direction:ltr;gap:2px;border:1px solid #d5e1d3;border-radius:8px;overflow:hidden}
.design-rotation button,.design-rotation input{background:#fff;border:0;color:#28523f;min-block-size:42px}
.design-rotation button{font-size:1.35rem;inline-size:42px;padding:0 4px}
.design-rotation button:hover{background:#e9f1e8}
.design-rotation input{width:56px;text-align:center;border-inline:1px solid #edf1ea;border-radius:0;appearance:textfield;font:700 .9rem var(--font)}
.design-rotation input::-webkit-inner-spin-button{appearance:none}
.design-studio button:disabled,.design-leaf-tools:disabled{opacity:.55;cursor:default}
.design-leaf-tools:disabled button:hover{background:#fff}
.design-edit-actions .button{min-height:40px;padding:6px 10px;font-size:.85rem}
.design-studio-status{font-weight:700;color:#28523f;min-block-size:1.3em}
.design-studio-status.design-dirty{color:#80532b}
.design-authoring .viewport{touch-action:none}
.design-authoring .leaf-node{cursor:grab;touch-action:none;transition:filter 120ms ease}
.design-authoring .leaf-node.design-dragging{cursor:grabbing}
.design-authoring .leaf-node.design-selected{z-index:2;outline:2px solid #615035;outline-offset:2px;border-radius:38% 18% 41% 20%;filter:drop-shadow(0 2px 5px #50381488)}
@media(max-width:540px){
  .design-studio{gap:6px;padding:9px;top:3px}
  .design-studio-heading{align-items:stretch;flex-direction:column}
  .design-studio-heading .tree-search{flex-basis:auto}
  .design-studio-heading #design-exit{order:2;align-self:start;min-height:32px;padding:3px 8px}
  .design-studio-tools,.design-edit-actions{gap:5px}
  .design-studio-tools{align-items:start;flex-direction:column}
  .design-studio-hint{font-size:.76rem;line-height:1.48}
  .design-edit-actions{width:100%}
  .design-edit-actions .button{min-height:38px;padding-inline:6px;font-size:.75rem}
  .design-edit-actions .chart-controls button{width:24px}
  .design-edit-actions .chart-controls output{min-width:32px}
  #design-save{margin-inline-start:auto}
  #design-leaf-name{max-inline-size:calc(100vw - 215px)}
}
@media(max-width:540px){
  .design-chooser{padding:11px;gap:8px}
  .design-option{flex-direction:column;gap:3px;min-height:62px;padding:5px 3px;font-size:.79rem}
  .design-swatch{width:19px;height:19px}
}
.chart-chrome{display:grid;gap:4px;padding-block:12px 9px}
.chart-toolbar,.chart-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chart-toolbar{justify-content:space-between}
.chart-toolbar-actions{min-width:0}
.chart-review{min-height:38px;padding:5px 10px;font-size:.85rem;white-space:nowrap}
.segmented{background:#eef3ec;border-radius:8px;padding:3px;display:flex;gap:2px}
.segmented button{border:0;border-radius:6px;background:transparent;color:#4d6558;display:flex;align-items:center;gap:5px;min-height:34px;padding:4px 9px;font-size:.86rem;font-weight:700;white-space:nowrap}
.segmented button[aria-pressed="true"]{background:white;color:#174636;box-shadow:0 2px 4px #22372c15}
.viewport{direction:ltr;position:relative;height:clamp(280px,69vh,960px);height:clamp(280px,69svh,960px);overflow:hidden;isolation:isolate;touch-action:pan-y;background-color:#edf1e4;background-image:radial-gradient(ellipse at 50% 39%,#fdfbf0 0%,#f4f5e9 59%,#e8eee0 100%);border:1px solid #dce5d8;border-radius:13px;cursor:grab}
.chart-panel[data-tree-design="oak"] .viewport{background:radial-gradient(ellipse at 46% 34%,#fcfcf2 10%,#f1f4e7 63%,#e3eadc);border-color:#cfddcc}
.chart-panel[data-tree-design="manuscript"] .viewport{background:radial-gradient(ellipse at 48% 43%,#fffaf0 8%,#f8edd7 69%,#ecdbbb);border-color:#d9c59d;box-shadow:inset 0 0 0 4px #fffbf053}
.chart-panel[data-tree-design="fan"] .viewport{background:radial-gradient(ellipse at 50% 28%,#fdfffc 10%,#edf6f2 75%,#e0ece6);border-color:#c9dcd1}
.tree-fan-ring{stroke:#71978b;stroke-width:3.8;stroke-dasharray:10 17;stroke-opacity:.30}
.viewport.dragging{cursor:grabbing;user-select:none}
.canvas{position:absolute;top:0;left:0;transform-origin:0 0;z-index:1}
.canvas>svg{position:absolute;inset:0;overflow:visible;pointer-events:none}
.chart-legend,.chart-controls{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #dbe5d9;border-radius:7px}
.chart-legend{color:#3d5e4e;font-size:.84rem;padding:5px 9px}
.chart-controls{direction:ltr;gap:2px;padding:2px;color:#28523f}
.chart-panel:has(.viewport[hidden]) :is(.chart-legend,.chart-controls){display:none}
.chart-controls button{display:grid;place-items:center;background:#fff;border:0;border-radius:5px;width:33px;height:33px;font-size:1.01rem}
.chart-controls button:hover{background:#e9f1e8}
.chart-controls output{font-size:.78rem;min-width:44px;text-align:center;font-weight:700}
.chart-foot{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;color:#5b7165;font-size:.85rem;padding-block:3px}
.demo-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;margin-bottom:12px;padding:9px 13px;border-radius:9px;border:1px solid #d9c495;background:#f8f1df;color:#59441f;font-size:.88rem}
.demo-banner .button{min-height:33px;padding:4px 9px}
.demo-link{margin-inline-start:auto;text-underline-offset:3px;color:#325a45;font-weight:700}
.node{direction:rtl;text-align:center;display:flex;align-items:center;justify-content:center;position:absolute;gap:8px;width:160px;min-height:59px;padding:7px 10px;border:0;background:none;color:#263c2e;font-size:1rem;line-height:1.36;transition:transform 160ms ease,filter 180ms ease,opacity 250ms ease-out}
.node:hover{transform:translateY(-2px)}
.node[aria-current="true"]{outline:2px solid var(--branch,#2f6347);outline-offset:2px}
.node.leaf-node{--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 62' preserveAspectRatio='none'%3E%3Cpath d='M3 48C23 38 38 17 67 10C95 3 123 10 158 11C145 29 132 46 107 54C75 64 41 56 3 48Z'/%3E%3C/svg%3E");isolation:isolate;min-height:0;transform:var(--leaf-geometry,none);padding:0;filter:drop-shadow(0 3px 2px #23463225);color:var(--branch-ink,#244b34)}
.node.leaf-node:hover{transform:var(--leaf-geometry,none)}
.chart-panel[data-tree-design="oak"] .node.leaf-node{--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 62' preserveAspectRatio='none'%3E%3Cpath d='M3 48C24 38 38 13 69 8C96 2 126 5 158 11C147 32 133 49 107 55C76 64 39 56 3 48Z'/%3E%3C/svg%3E")}
.chart-panel[data-tree-design="manuscript"] .node.leaf-node{--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 62' preserveAspectRatio='none'%3E%3Cpath d='M3 48C25 31 43 11 76 7C106 4 130 10 158 11C140 44 124 54 100 57C69 64 34 57 3 48Z'/%3E%3C/svg%3E")}
.chart-panel[data-tree-design="fan"] .node.leaf-node{--shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 62' preserveAspectRatio='none'%3E%3Cpath d='M3 48C24 34 37 15 68 9C103 1 129 9 158 11C138 38 122 50 104 55C75 62 47 56 3 48Z'/%3E%3C/svg%3E");filter:none}
.leaf-node::before,.leaf-node::after{content:"";position:absolute;-webkit-mask:var(--shape) center/100% 100% no-repeat;mask:var(--shape) center/100% 100% no-repeat;pointer-events:none}
.leaf-node::before{inset:0;background:var(--branch,#477658);z-index:-2}
.leaf-node::after{inset:calc(1.6px * var(--leaf-scale,1)) calc(2px * var(--leaf-scale,1));background:linear-gradient(166deg,transparent 48.6%,var(--leaf-vein,#506b3948) 49.7%,transparent 51.5%),linear-gradient(153deg,#f9f8b294,transparent 57%,#34672535),var(--branch-wash,#b8d191);z-index:-1}
.leaf-left::before,.leaf-left::after{transform:scaleX(-1)}
.leaf-node .node-symbol{display:none}
.leaf-node .node-name{position:relative;transform:rotate(var(--leaf-name-angle,-13.5deg));transform-origin:center}
.leaf-node.leaf-left{--leaf-name-angle:13.5deg;--leaf-name-x:-4px}
.leaf-name-text{display:block;font-size:calc(var(--leaf-name-size,24px) * var(--leaf-scale,1));font-weight:800;line-height:1.02;transform:translate(calc(var(--leaf-name-x,4px) * var(--leaf-scale,1)),calc(var(--leaf-name-offset,0px) * var(--leaf-scale,1)))}
.leaf-name-line{display:block;white-space:nowrap}
.node.leaf-node .leaf-review-mark{position:absolute;left:50%;top:calc(50% + 16px * var(--leaf-scale,1));margin:0;transform:translateX(-50%);font-size:calc(9px * var(--leaf-scale,1));line-height:1}
.leaf-node:hover,.leaf-node[aria-current="true"]{filter:drop-shadow(0 4px 4px #183f2d46)}
.leaf-node[aria-current="true"]{outline:0;color:#fff}
.leaf-node[aria-current="true"]::after{background:var(--branch-ink,#24513c)}
.leaf-node[aria-current="true"] small{color:#eaf1e8}
.leaf-node:focus-visible{outline:2px dashed #9a652e;outline-offset:2px;border-radius:12px}
.node.trunk-node{min-height:0;padding:1px 6px;gap:4px;border:1px solid transparent;border-radius:5px;background:transparent;color:#381f16;font-size:min(var(--trunk-name-size,15px),20px);line-height:1.04;text-shadow:0 1px #fff2dc70}
.trunk-node .node-symbol{display:none}
.trunk-node .node-name{font-size:inherit;font-weight:750;line-height:inherit;white-space:nowrap;overflow-wrap:normal}
.node.trunk-node small{display:inline;margin:0;color:inherit;font-size:.78em}
.node.trunk-node:hover{background:#fff3df4d;border-color:#7e432c5e;transform:none}
.node.trunk-node[aria-current="true"]{border-color:var(--trace-red);outline-color:var(--trace-red);background:#ffdfd1;color:#64211b}
.node.trunk-node:focus-visible{outline:2px solid var(--trace-red);outline-offset:1px}
.node:is(.trunk-node,.root-node).trunk-oldest-node{padding:4px 9px;border:2px solid #c6a66f;border-radius:9px;background:linear-gradient(155deg,#3a5941,#1d382d 63%,#163126);color:#fff4d9;box-shadow:inset 0 1px #f5dcb955,0 4px 9px #3925185c;font-size:var(--trunk-name-size,34px);line-height:1.12;text-shadow:0 1px #12271c;transform:none}
.trunk-oldest-node .node-name{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;font-size:inherit;font-weight:850;line-height:inherit;white-space:normal}
.trunk-oldest-node .node-name>span{min-width:0;overflow-wrap:anywhere;text-wrap:balance}
.node:is(.trunk-node,.root-node).trunk-oldest-node small{flex:none;align-self:center;margin:0;color:#e3c58a;font-size:.62em}
.node:is(.trunk-node,.root-node).trunk-oldest-node:is(:hover,[aria-current="true"]){background:linear-gradient(155deg,#48684b,#254437 63%,#1c372c);border-color:#e8cb95;color:#fff7e3}
.node:is(.trunk-node,.root-node).trunk-oldest-node:is(:focus-visible,[aria-current="true"]){outline:2px solid #f1d18f;outline-offset:2px}
.canvas .node.descendant-muted{opacity:.23}
.canvas .node.descendant-muted:hover{opacity:.62}
.canvas .node.descendant-muted:focus-visible{opacity:1}
.botanical-tree :is(.tree-stem-body,.tree-foliage-cluster,.tree-trunk,.tree-wood-perimeter,.tree-collar-blend){transition:opacity 250ms ease-out}
.botanical-tree:has(.descendant-muted) .tree-wood-perimeter{opacity:.20}
.botanical-tree .descendant-muted>.tree-stem-body{opacity:.18}
.botanical-tree .tree-foliage-cluster.descendant-muted{opacity:.14}
.botanical-tree :is(.tree-trunk,.tree-collar-blend).descendant-muted{opacity:.58}
.descendant-overlay{pointer-events:none}
.descendant-trace{fill:none;stroke:var(--trace-red);stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 1px var(--trace-halo))}
.descendant-trace-draw{stroke-dasharray:1 1;stroke-dashoffset:1;animation:descendant-trace var(--trace-duration) cubic-bezier(.3,.1,.28,1) var(--trace-delay) both}
.descendant-dots{fill:none;stroke:#fff0b8;stroke-linecap:round;stroke-dasharray:.2 15.8;animation:descendant-points 760ms linear var(--dot-delay) infinite,descendant-points-in 200ms ease-out var(--dot-delay) both}
.leaf-node.descendant-node{--leaf-vein:#b62c296b}
.leaf-node.descendant-node::before{background:var(--trace-red)}
.leaf-node.descendant-node[aria-current="true"]::after{background:#8e251f}
.leaf-node.descendant-node-draw::before{animation:descendant-leaf-color 220ms ease-out var(--descendant-delay,0ms) both}
.node.trunk-node.descendant-node:not([aria-current="true"]){color:#8a251f}
@keyframes descendant-trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes descendant-leaf-color{from{background:var(--branch,#477658)}to{background:var(--trace-red)}}
@keyframes descendant-points{from{stroke-dashoffset:16}to{stroke-dashoffset:0}}
@keyframes descendant-points-in{from{opacity:0}to{opacity:1}}
.node-symbol,.profile-symbol{display:grid;place-items:center;background:var(--branch-wash,#e7f0e6);color:var(--branch-ink,#315d46);flex:none}
.node-symbol{width:27px;height:27px;border-radius:7px;font-size:.97rem}
.node-name{min-width:0;overflow-wrap:anywhere;font-weight:700}
.node small{display:block;font-size:.75rem;color:#55695b;margin-top:3px;font-weight:500}
.leaf-node small{font-size:calc(.75rem * var(--leaf-scale,1));margin-top:calc(3px * var(--leaf-scale,1))}
.node.root-node{background:linear-gradient(155deg,#294b31,#172d20);color:#fff9e7;border:1.5px solid #c5a56b;border-radius:10px 10px 16px 16px;box-shadow:0 3px 9px #30271769}
.node.root-node small{color:#e1d5b9}
.node.root-node .node-symbol{background:#d4b479;color:#243a27}
.detail{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 18px;background:var(--surface);border:1px solid var(--line);border-radius:11px;min-width:0;padding:9px 12px}
#person-detail{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;min-width:0}
.detail-header{display:flex;align-items:center;gap:8px;min-height:39px;min-width:0}
.profile-symbol{border-radius:8px;width:36px;height:36px;font-size:1.12rem}
.detail-header h3{font:700 1.2rem/1.31 var(--title);min-width:0;overflow-wrap:anywhere}
.profile-meta{font-size:.86rem;color:#566d62}
.profile-note{color:#53695a;font-size:.86rem;line-height:1.55}
.detail dl{display:flex;flex-wrap:wrap;align-items:baseline;gap:1px 13px;margin:0;min-width:0}
.profile-fact{display:flex;align-items:baseline;gap:5px;min-width:0}
.detail dt{flex:none;font-size:.82rem;color:var(--muted);line-height:1.45}
.detail dd{margin:0;min-width:0;font-size:.9rem;font-weight:700;overflow-wrap:anywhere}
.profile-children{display:flex;flex-wrap:wrap;gap:2px 9px;max-height:4.2em;overflow:auto}
.text-link{border:0;background:none;padding:0;text-align:start;color:#2e634b;font-weight:700}
.text-link:hover{text-decoration:underline}
.detail-actions{display:flex;flex-wrap:wrap;gap:5px}
.detail-actions .button{min-height:36px;padding:5px 9px;font-size:.84rem}
.tree-person-panel{
  --panel-start:max(12px,calc(env(safe-area-inset-right,0px) + 7px));
  --panel-end:max(12px,calc(env(safe-area-inset-left,0px) + 7px));
  --panel-bottom:max(12px,calc(env(safe-area-inset-bottom,0px) + 7px));
  position:fixed;z-index:8;inset-inline-start:var(--panel-start);inset-block-end:var(--panel-bottom);
  display:grid;gap:7px;inline-size:min(21rem,calc(100% - var(--panel-start) - var(--panel-end)));
  max-block-size:calc(100vh - var(--panel-bottom) - 14px);
  max-block-size:calc(100dvh - var(--panel-bottom) - max(14px,env(safe-area-inset-top,0px)));
  overflow:auto;overscroll-behavior:contain;padding:9px 11px 10px;border:1px solid #d0ddcd;
  border-radius:12px;background:#fcfdf9;box-shadow:0 9px 29px #18352830;color:#1e3427;
}
.tree-person-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
.tree-person-name{min-width:0;margin-block-start:5px;color:#193328;font:700 1.12rem/1.42 var(--font);overflow-wrap:anywhere}
.tree-person-panel .tree-person-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;background:#edf3ea;color:#294d3a;border:1px solid #e1e9dd;border-radius:8px}
.tree-person-panel .tree-person-close:hover{background:#e0ebdf}
.tree-person-panel .tree-person-login{justify-self:start;min-height:44px;padding:6px 8px;font-size:.85rem}
.tree-person-actions{display:flex;flex-wrap:wrap;gap:5px}
.tree-person-panel .tree-person-actions .button{min-width:0;min-height:44px;padding:6px 10px;font-size:.8625rem;text-align:center;white-space:normal}
.tree-person-preview{justify-self:start;min-width:0;color:#3d604e;font-size:.84rem;line-height:1.4}
.tree-person-preview a,.tree-person-preview button,:is(a,button).tree-person-preview{display:inline-flex;align-items:center;min-height:44px;color:#2e6049;font-weight:700;text-underline-offset:3px}
button.tree-person-preview,.tree-person-preview button{padding:0;border:0;background:none}
.tree-person-preview a:hover,.tree-person-preview button:hover,:is(a,button).tree-person-preview:hover{text-decoration:underline}
.lineage{background:#f4f7f1;border-block:1px solid #e2e9df;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:15px}
.line-col{min-width:0;border-radius:8px;padding:8px;background:#eaf2e7}
.line-col h3{font-size:.9rem;margin:2px 4px 7px;color:#3c604d}
.line-col ol{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.line-col li{min-width:0;position:relative}
.line-col li:not(:last-child):before{content:"";height:5px;position:absolute;top:100%;inset-inline-start:21px;border-inline-start:1px solid #9fba9f}
.line-col button{background:white;border:1px solid #d8e4d6;border-radius:7px;width:100%;display:flex;gap:6px;align-items:center;text-align:start;min-height:36px;padding:4px 6px;line-height:1.45;font-size:.88rem}
.line-col button:hover,.line-col button[aria-current=true]{border-color:#589375;background:#f7faf4}
.line-col .number{display:grid;place-items:center;min-width:25px;min-height:24px;border-radius:5px;background:#eaf2e7;color:#3e624b;font-size:.84rem;flex:none}
.line-col .mark{color:#986326}
.load-notice{margin-bottom:8px;color:#745223;font-size:.88rem}
dialog{margin:auto;background:white;color:var(--ink);border:1px solid #d4e2d3;border-radius:16px;max-height:min(91vh,870px);width:min(480px,calc(100% - 28px));padding:22px;overflow:auto}
dialog.wide{width:min(735px,calc(100% - 28px))}
dialog::backdrop{background:#0e271fb0}
dialog h2{margin:0 0 6px;font:700 1.55rem/1.5 var(--title);padding-inline-end:38px}
.icon-button{background:#edf4eb;border:0;color:#224836;border-radius:7px;width:35px;height:35px;display:grid;place-items:center}
.icon-button:hover{background:#dfebdd}
.dismiss{position:absolute;inset-inline-end:13px;top:13px}
.muted{color:var(--muted);font-size:.93rem}
dialog form{display:grid;gap:11px;margin-top:13px}
dialog label{display:block;font-size:.9rem;font-weight:650}
dialog input:not([type=file]),dialog textarea,dialog select{display:block;width:100%;min-height:40px;margin-top:3px;border:1px solid #c7d6c7;border-radius:7px;padding:5px 9px;background:#fff;color:var(--ink);font-size:1rem}
dialog textarea{resize:vertical}
dialog input[type=file]{display:block;max-width:100%;font-size:.86rem;margin-top:4px}
dialog input[type=file]::file-selector-button{font:inherit;font-weight:650;padding:5px 9px;border:1px solid #c4d3c1;border-radius:6px;background:white;color:#2c5641;cursor:pointer}
.contact-dialog{width:min(580px,calc(100% - 28px))}
.contact-directory{margin-block:14px;padding:11px;border:1px solid #dce9dc;border-radius:8px;background:#f6f9f4}
.contact-directory h3{font-size:1rem;color:var(--forest)}
.contact-status{margin-top:7px;color:var(--muted);font-size:.88rem}
.contact-done{justify-self:start;min-width:78px}
.contact-guest-list{display:grid;gap:6px;margin:7px 0 0;padding:0;list-style:none}
.contact-guest-list a{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px 10px;min-height:46px;padding:7px 10px;background:white;border:1px solid #dce9dc;border-radius:7px;color:var(--forest);text-decoration:none;font-size:.9rem}
.contact-guest-list a:hover{background:#eaf3e8;border-color:#a4c0a7}
.contact-guest-list strong{overflow-wrap:anywhere}
.contact-guest-list bdi{font-variant-numeric:tabular-nums;white-space:nowrap}
.contact-guest-list a>span{padding:3px 7px;border-radius:4px;background:#e9f2e6;font-size:.76rem;font-weight:700;white-space:nowrap}
.contact-fields{min-width:0;border:0;margin:0;padding:0}
.contact-rows{display:grid;gap:8px}
.contact-edit-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:7px;padding:8px;background:#f5f8f3;border:1px solid #e0e9df;border-radius:8px}
.contact-edit-row .button{min-height:40px;padding-inline:8px;color:#8a382d}
.contact-fields>.button{margin-top:8px}
@media(max-width:490px){
  .contact-guest-list a{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .contact-guest-list a>bdi{grid-column:1;grid-row:2;justify-self:start}
  .contact-guest-list a>span{grid-column:2;grid-row:1/3}
  .contact-edit-row{grid-template-columns:minmax(0,1fr) auto}
  .contact-edit-row label:first-child{grid-column:1/-1}
}
.upload-box{background:#f2f6ef;border-radius:8px;border:1px dashed #97b39e;padding:10px}
.upload-box p{font-size:.84rem;line-height:1.55;color:#536a59;margin-top:6px}
.upload-box .button{margin-top:7px;min-height:33px;padding-block:4px}
.inline-error,[data-error]{color:#9a382b;font-size:.87rem}
.toast{position:fixed;z-index:10;inset:auto auto 18px 18px;border-radius:9px;background:#174637;color:#fff;box-shadow:0 7px 30px #18352730;padding:10px 14px;max-width:calc(100% - 36px);font-size:.95rem}
.request-item{border:1px solid #d9e5d9;padding:12px;border-radius:9px;margin-top:9px}
.request-item h3{font-size:1rem}
.request-item p{font-size:.88rem;color:#4d6354}
.request-item-heading{display:flex;align-items:center;justify-content:space-between;gap:9px}
.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:13px}
.review-toolbar .button{min-height:38px}
.admin-actions{display:flex;gap:6px;flex-wrap:wrap}
.manage-tabs{width:max-content;max-width:100%;margin-top:12px}
.manage-feedback{margin-top:12px;padding:8px 10px;background:#edf5eb;border-radius:7px;color:#23553c;font-size:.88rem;font-weight:650}
.review-status{font-size:.81rem;font-weight:700;border-radius:6px;padding:2px 7px;color:#245640;background:#e5f0e4}
.review-status.rejected{color:#8b3c2d;background:#faece6}
.request-item .review-date{font-size:.82rem;color:#586e61}
.demo-accounts{display:grid;gap:7px;grid-template-columns:repeat(2,minmax(0,1fr))}
.demo-accounts .button{padding-inline:6px}
.request-disclosure{font-size:.86rem}
.request-actions{margin-top:7px;display:flex;gap:6px;flex-wrap:wrap}
.request-actions .button{min-height:34px}
dialog.review-detail{width:min(900px,calc(100% - 24px))}
.review-layout{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"original attachment" "correction attachment";gap:12px;align-items:start}
.review-origin{grid-area:original;background:#f5f8f2}
.review-correction{grid-area:correction}
.review-evidence{grid-area:attachment}
.review-layout section{min-width:0;padding:12px;border:1px solid #d9e4d8;border-radius:9px}
.review-layout h3{font-size:.96rem;margin-bottom:6px;color:#204b36}
.review-origin dl{display:grid;gap:6px;margin:0}
.review-origin dl div{min-width:0;line-height:1.55}
.review-origin dt{font-size:.8rem;color:#52695c}
.review-origin dd{margin:1px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.93rem}
.review-correction label+label{margin-top:8px}
.review-evidence img{display:block;width:100%;max-height:310px;object-fit:contain;border:1px solid #e0e8dc;border-radius:7px;background:#f1f5ee;margin-bottom:8px}
.review-evidence p:not(:empty){margin-bottom:8px}
.review-decision{position:sticky;bottom:-22px;z-index:1;background:white;border-top:1px solid #e1eadf;padding:8px 0 6px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.review-decision p{flex-basis:100%;white-space:pre-wrap}
#attachment{display:block;max-width:100%;max-height:69vh;object-fit:contain;margin:0 auto;border:1px solid #d9e5d9;border-radius:8px}
@media(max-width:600px){.review-layout{grid-template-areas:"original" "attachment" "correction";grid-template-columns:minmax(0,1fr);gap:9px}.review-evidence img{max-height:230px}.review-decision .button{flex:1}.review-toolbar .button{font-size:.83rem}}
@media(max-width:1050px){.layout{width:calc(100% - 48px)}.lineage{gap:7px;padding:9px}}
@media(max-width:790px){
  .layout{width:calc(100% - 30px)}
  .viewport{height:clamp(280px,65vh,700px);height:clamp(280px,65svh,700px);border-radius:11px}
  .top-inner{min-height:63px}
  .identity img{width:36px;height:36px}
  .identity{gap:7px}
  .identity strong{font-size:1.13rem}
  .identity small{font-size:.73rem}
  .top-actions{gap:4px}
  .top-actions .button{min-height:34px;padding:5px 8px;font-size:.8rem;gap:4px}
  .hero-inner{min-height:248px;padding-block:27px}
  .hero-art{width:83vw;opacity:.66;mask-image:linear-gradient(90deg,#000 0%,#000 32%,transparent 94%)}
  .hero h1{font-size:clamp(2.65rem,7.7vw,4.6rem)}
  .hero-facts{padding:6px 8px;gap:7px}
  .hero-facts strong{font-size:1.15rem}
  .hero-facts span{font-size:.75rem}
  .hero-facts div+div{padding-inline-start:8px}
  .section-head{align-items:start;margin-bottom:12px}
  .section-head p{font-size:.86rem}
  .detail{grid-template-columns:minmax(0,1fr)}
}
@media(orientation:landscape) and (max-height:620px){
  .viewport{height:clamp(168px,64vh,420px);height:clamp(168px,64svh,420px)}
}
@media(max-width:535px){
  .topbar .quiet i{display:none}
  .top-inner{gap:8px}
  .identity{flex:none}
  .top-actions{min-width:0;justify-content:flex-end}
  .top-actions .button{min-height:40px;text-align:center}
  #session-button{line-height:1.2}
  #add-button{flex:none;white-space:nowrap}
  .hero-inner{display:block;min-height:233px}
  .hero-description{margin-bottom:14px}
  .hero-facts{position:absolute;top:auto;bottom:17px;inset-inline-end:0}
  .hero-art{width:100%;opacity:.52;background-position:33% center}
  .hero-link{min-height:37px;padding-inline:10px;font-size:.82rem}
  .section-head{display:grid;gap:10px}
  .tree-search{width:100%}
  .chart-toolbar-actions{gap:4px 6px}
  .chart-legend{padding-inline:6px;font-size:.79rem}
  .lineage{grid-template-columns:1fr}
}
@media(max-width:355px){
  .top-inner{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:5px;padding-block:7px}
  .top-actions{justify-content:flex-start}
  .hero-facts{bottom:13px}
  .hero-facts span{font-size:.7rem}
  .hero-facts div{padding-inline:0}
}
@keyframes content-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes canopy-enter{from{opacity:.3;transform:scale(1.026)}to{transform:scale(1)}}
@keyframes search-leaf-pulse{
  0%,100%{filter:drop-shadow(0 4px 4px #183f2d46)}
  48%{filter:drop-shadow(0 0 2px #be8a38) drop-shadow(0 1px 8px #b17c33e0)}
}
@keyframes search-focus-pulse{
  0%,100%{box-shadow:0 0 0 0 #b4853a00}
  48%{box-shadow:0 0 0 5px #b4853a56}
}
.hero-copy{animation:content-enter 480ms ease-out both}
.hero-art{animation:canopy-enter 690ms ease-out both}
.detail-header,dialog[open]{animation:content-enter 175ms ease-out both}
.canvas .leaf-node.search-hit{animation:search-leaf-pulse 690ms ease-in-out 2}
.canvas :is(.root-node,.trunk-node).search-hit,.line-col button.search-hit{animation:search-focus-pulse 690ms ease-in-out 2}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-copy,.hero-art,.canvas .node,.botanical-tree,.detail-header,dialog[open],.canvas .node.search-hit,.line-col button.search-hit{animation:none}
  .node{transition:none}
  .botanical-tree :is(.tree-stem-body,.tree-foliage-cluster,.tree-trunk,.tree-wood-perimeter,.tree-collar-blend){transition:none}
  .node:hover{transform:none}
  .descendant-trace-draw{animation:none;stroke-dasharray:none;stroke-dashoffset:0}
  .descendant-dots{animation:none;opacity:1}
  .leaf-node.descendant-node::before{animation:none}
}
