/* The canopy belongs to the page: transparent scene, no card or enclosing frame. */
.hero{grid-template-columns:minmax(0,.82fr) minmax(0,1.35fr);gap:10px;align-items:center;max-width:1560px;padding-top:12px;padding-bottom:32px}
.hero-copy{padding-bottom:25px;z-index:3}.hero-description{max-width:405px}.hero-buttons{gap:20px;flex-wrap:wrap}
.specimen{display:grid;grid-template-rows:auto auto auto auto;position:relative;isolation:isolate;min-width:0;height:auto;margin:0 -30px 0 -20px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.specimen-heading{grid-row:1;position:relative;inset:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;min-height:32px;z-index:5;pointer-events:auto}
.habitat-title{display:flex;flex-direction:row;align-items:center;gap:7px;min-width:0;white-space:nowrap;color:var(--ink);font-size:11px;line-height:1.4}.habitat-invitation,.habitat-divider{color:var(--muted)}.habitat-title strong{font-weight:600}
#expand-habitat{background:transparent;border:1px solid var(--line);color:var(--ink);border-radius:3px;padding:6px 11px;min-height:32px;font-size:11px;transition:background .2s,border-color .2s;white-space:nowrap}#expand-habitat:hover{background:var(--soft);border-color:var(--muted)}
.specimen #worm-canvas{grid-row:2;position:relative;inset:auto;display:block;height:520px;width:100%;outline-offset:-5px;z-index:2;touch-action:pan-y}
.specimen .worm-fallback{top:8%;left:10%;height:56%;width:80%;object-fit:contain;z-index:1}
.habitat-tooltip{position:absolute;top:54px;right:28px;left:auto;max-width:270px;margin:0;padding:8px 11px;color:var(--muted);background:var(--bg);border:0;border-radius:3px;font-size:10px;line-height:1.6;z-index:5;pointer-events:none}
.habitat-hud{grid-row:3;position:relative;inset:auto;margin:0 28px;padding:15px 0 0;background:transparent;border:0;border-top:1px solid var(--line);z-index:4}
.habitat-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted);line-height:1.5}.habitat-meta>span:first-child{margin-right:auto}.habitat-meta strong{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
#habitat-autoplay{border:0;border-bottom:1px solid var(--line);background:none;padding:2px 0;color:var(--muted);font-size:10px;white-space:nowrap}#habitat-autoplay[aria-pressed=true]{color:var(--green)}
.habitat-state{font-size:13px;line-height:1.5;min-height:20px;margin:9px 0;color:var(--ink)}.habitat-track{height:2px;background:var(--line)}.habitat-track span{display:block;height:100%;width:0;background:var(--priors);box-shadow:none;transition:width .1s linear}
.habitat-readings{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;color:var(--muted);font-size:10px;line-height:1.5}.habitat-readings strong{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums;margin-left:4px}
.tree-activities{display:grid;grid-template-columns:1.17fr 1fr 1fr;gap:8px;margin:14px 0 0}
.habitat-tree-action{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;width:100%;min-width:0;min-height:64px;text-align:left;padding:11px 12px;background:var(--soft);border:1px solid var(--line);border-radius:4px;color:var(--ink);transition:background .2s,border-color .2s,transform .2s}
.habitat-tree-action>span{font-size:11px;font-weight:600;line-height:1.4}.habitat-tree-action>span>span{margin-left:5px}.habitat-tree-action small{font-size:9px;line-height:1.4;color:var(--muted)}.habitat-tree-action strong{font-weight:500;font-variant-numeric:tabular-nums}
.habitat-tree-action:first-child{background:var(--priors-soft);border-color:var(--priors-line)}.habitat-tree-action:first-child>span{color:var(--priors)}
.habitat-tree-action:hover:not(:disabled){transform:translateY(-2px);background:var(--paper);border-color:var(--priors)}.habitat-tree-action:disabled{opacity:.48;cursor:default}
.workstation-tools{margin-top:13px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.workstation-tools summary{min-height:42px;padding:10px 0;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:10px;color:var(--muted);list-style:none}.workstation-tools summary::-webkit-details-marker{display:none}.workstation-tools summary span{font-size:16px;transition:transform .25s}.workstation-tools[open] summary span{transform:rotate(45deg)}.workstation-tools summary:hover{color:var(--priors)}
.habitat-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding-bottom:12px}.habitat-actions button{min-height:37px;min-width:0;border:1px solid var(--line);border-radius:3px;background:transparent;color:var(--ink);font-size:10px;line-height:1.3;padding:8px;transition:background .2s,border-color .2s}.habitat-actions button:hover:not(:disabled){background:var(--soft);border-color:var(--muted)}.habitat-actions button:disabled{opacity:.4;cursor:default}
.specimen-controls{grid-row:4;position:relative;inset:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 28px 0;color:var(--muted);z-index:4}.specimen-controls>div{display:flex;background:transparent;border:1px solid var(--line);border-radius:3px;overflow:hidden}.specimen-controls button{min-height:34px;padding:8px 10px;border:0;background:none;color:var(--muted);font-size:10px;white-space:nowrap;line-height:1.4}.specimen-controls button+button{border-left:1px solid var(--line)}.specimen-controls button[aria-pressed=true],.specimen-controls button:hover{background:var(--soft);color:var(--ink)}#habitat-zoom-in,#habitat-zoom-out{font-size:16px;min-width:33px;padding:4px 8px}
.habitat-placeholder{width:100%;align-self:stretch;background:transparent}
.habitat-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--bg);color:var(--ink);overflow:auto}.habitat-dialog::backdrop{background:var(--bg)}
.habitat-dialog .specimen.habitat-expanded{grid-template-rows:auto minmax(240px,1fr) auto auto;width:100%;min-height:100%;height:100dvh;margin:0;padding:22px 22px 18px;background:transparent}.habitat-expanded #worm-canvas{height:100%;min-height:0}.habitat-expanded .specimen-heading{padding:0 8px}.habitat-expanded .habitat-hud{margin:0 auto;width:min(780px,100%)}.habitat-expanded .specimen-controls{margin:12px auto 0;width:min(780px,100%)}.habitat-expanded .habitat-title{font-size:12px}.habitat-expanded .tree-activities{grid-template-columns:repeat(3,minmax(0,1fr))}.habitat-expanded .habitat-tree-action{min-height:58px}.habitat-expanded .habitat-actions{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(min-width:1600px){.specimen #worm-canvas{height:580px}.habitat-expanded #worm-canvas{height:100%}}
@media(max-width:1200px){.hero{gap:0}.specimen{margin:0 -24px 0 -15px}.specimen #worm-canvas{height:480px}.habitat-expanded #worm-canvas{height:100%}.habitat-tree-action{padding:10px}.habitat-tree-action>span{font-size:10px}.habitat-tree-action small{font-size:8px}.specimen-controls button{padding:8px}.habitat-title{font-size:10px}}
@media(max-width:1000px){.hero{display:flex;flex-direction:column;align-items:stretch;gap:32px;padding-top:36px}.hero-copy{max-width:720px;padding:0}.hero-description{max-width:570px}.hero h1 br{display:none}.specimen{width:100%;max-width:850px;align-self:center;margin:0}.specimen #worm-canvas{height:540px}.habitat-expanded #worm-canvas{height:100%}.tree-activities{grid-template-columns:repeat(3,minmax(0,1fr))}.habitat-tree-action>span{font-size:12px}.habitat-tree-action small{font-size:10px}.habitat-title{font-size:11px}}
@media(max-width:600px){.hero{gap:28px;padding-top:28px;padding-bottom:36px}.hero h1 br{display:block}.hero-buttons{gap:18px}.hero-description{font-size:15px}.specimen{width:calc(100% + 24px);margin:0 -12px;max-width:none;align-self:center}.specimen-heading{padding:0 12px;gap:12px}.habitat-title{font-size:11px}.habitat-prefix,.habitat-invitation{display:none}#expand-habitat{min-height:35px;padding:8px 10px;font-size:10px}.specimen #worm-canvas{height:420px}.habitat-hud{margin:0 12px;padding-top:12px}.habitat-meta{font-size:9px;gap:10px}#habitat-autoplay{font-size:9px}.habitat-state{font-size:12px}.habitat-readings{font-size:9px;gap:7px}.habitat-readings strong{margin-left:2px}.tree-activities{gap:6px;margin-top:12px}.habitat-tree-action{padding:9px 7px;min-height:70px;gap:5px}.habitat-tree-action>span{font-size:10px}.habitat-tree-action small{font-size:8px}.habitat-tree-action>span>span{display:none}.specimen-controls{margin:12px 12px 0;gap:7px}.specimen-controls button{font-size:9px;padding:7px;min-height:33px}#habitat-zoom-in,#habitat-zoom-out{min-width:26px;padding:4px 6px}.habitat-tooltip{top:56px;right:12px;max-width:230px;font-size:9px;padding:7px 9px}.habitat-dialog .specimen.habitat-expanded{padding:15px 10px;grid-template-rows:auto minmax(220px,1fr) auto auto}.habitat-expanded #worm-canvas{height:100%;min-height:0}.habitat-expanded .specimen-heading{padding:0 4px}.habitat-expanded .habitat-title{font-size:11px}.habitat-prefix,.habitat-invitation{display:none}.habitat-expanded .habitat-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.habitat-expanded .habitat-tree-action{min-height:65px}.habitat-expanded .habitat-hud{width:100%;margin:0}.habitat-expanded .specimen-controls{width:100%;margin:12px 0 0}}
@media(max-width:370px){.specimen #worm-canvas{height:380px}.habitat-expanded #worm-canvas{height:100%}.habitat-tree-action>span{font-size:9px}.habitat-tree-action small{font-size:8px}.specimen-controls{flex-wrap:wrap}.specimen-controls>div{flex:1;justify-content:center}.specimen-controls button{flex:1}.habitat-meta{font-size:8px}.habitat-readings{font-size:8px}}
@media(prefers-reduced-motion:reduce){.specimen *{animation:none!important;transition:none!important}}
