<!-- SOLID CITY · part 3768 -->
egment">to Soul Print</span><span class="distance">270.2 u</span></div>
          <div class="schedule-row"><span class="stop-code">02</span><strong>Soul Print Tower</strong><span class="coord">(210, 170)</span><span class="segment">to Music Studio</span><span class="distance">405.0 u</span></div>
          <div class="schedule-row"><span class="stop-code">03</span><strong>Music Studio Tower</strong><span class="coord">(430, -170)</span><span class="segment">to Spaceport</span><span class="distance">951.9 u</span></div>
          <div class="schedule-row"><span class="stop-code">04</span><strong>Orbital Spaceport</strong><span class="coord">(-380, 330)</span><span class="segment">to Hangar</span><span class="distance">178.9 u</span></div>
          <div class="schedule-row"><span class="stop-code">05</span><strong>Double Strike Hangar</strong><span class="coord">(-540, 250)</span><span class="segment">return to Forum</span><span class="distance">595.1 u</span></div>
          <div class="board-foot"><span>Loop total: <strong>2,401.0 coordinate units</strong> · computed with √((x₂−x₁)²+(y₂−y₁)²)</span><span class="source-chip">SOURCE · project coordinate registry</span></div>
        </section>
      </section>
    </main>
  </div>

  <div class="drawer-backdrop" id="drawerBackdrop" role="presentation"><aside class="drawer" role="dialog" aria-modal="true" aria-labelledby="drawerTitle"><div class="drawer-head"><div><span class="state" id="drawerState"></span><h2 id="drawerTitle"></h2></div><button class="close" id="closeDrawer" aria-label="Close task">×</button></div><div class="drawer-body" id="drawerBody"></div></aside></div>
  <div class="confirm-layer" id="confirmLayer" role="dialog" aria-modal="true" aria-labelledby="confirmTitle"><div class="confirm-box"><h2 id="confirmTitle">Confirm consequential change</h2><p id="confirmText"></p><div class="confirm-actions"><button class="btn" id="cancelConfirm">Cancel</button><button class="btn gold" id="acceptConfirm">Confirm</button></div></div></div>
  <div class="toast" id="toast" role="status" aria-live="polite"></div>

<script>
(function(){
  'use strict';
  var selectedTask=null, confirmAction=null, clock=0, collabStep=0;
  var workers={
    king:{id:'king',name:'The King',kind:'human',initials:'TK',role:'Human operator',capabilities:'Inspect, edit, approve, hand off',status:'available'},
    surveyor:{id:'surveyor',name:'Surveyor',kind:'ai',initials:'SV',role:'Simulated collaborator',capabilities:'Coordinates, distance verification',status:'working'},
    planner:{id:'planner',name:'Route Planner',kind:'ai',initials:'RP',role:'Simulated collaborator',capabilities:'Stop order, service drafts',status:'working'},
    safety:{id:'safety',name:'Safety Checker',kind:'ai',initials:'SC',role:'Simulated collaborator',capabilities:'Claims review, release gates',status:'working'}
  };
  var taskSeed=[
    {id:'t1',title:'Survey verified city stops',description:'Record only the five city locations and coordinates supplied in the project brief.',state:'done',owner:'surveyor',previousOwner:null,work:'Forum Plaza (0, 0)\nMusic Studio Tower (430, -170)\nSoul Print Tower (210, 170)\nOrbital Spaceport (-380, 330)\nDouble Strike Hangar (-540, 250)',events:[
      ev('claim','Surveyor','Claimed the shared coordinate survey.','surveyor'),
      ev('result','Surveyor','Recorded five supplied city locations without adding a harbor or dock.','surveyor','Project brief · verified city coordinates'),
      ev('complete','Surveyor','Marked the coordinate survey complete after recording its source.','surveyor')
    ]},
    {id:'t2',title:'Draft the planned route',description:'Order the supplied stops into a proposed loop. Do not claim operating service or departure times.',state:'in-progress',owner:'planner',previousOwner:null,work:'Proposed loop: Forum Plaza → Soul Print Tower → Music Studio Tower → Orbital Spaceport → Double Strike Hangar → Forum Plaza.\n\nStatus language: PLANNED INAUGURAL SERVICE. No departure times, fares, or service-frequency claims.',events:[
      ev('claim','Route Planner','Claimed route drafting.','planner'),
      ev('info-request','Route Planner','Requested the verified coordinate set from Surveyor.','planner'),
      ev('info-answer','Surveyor','Answered Route Planner with all five coordinates.','surveyor','Project coordinate registry'),
      ev('exchange','Route Planner','Accepted Surveyor’s sourced answer and continued from it.','planner')
    ]},
    {id:'t3',title:'Verify straight-line distances',description:'Independently compute every consecutive leg from the supplied coordinates.',state:'review',owner:'surveyor',previousOwner:null,work:'Forum Plaza → Soul Print Tower: 270.2 units\nSoul Print Tower → Music Studio Tower: 405.0 units\nMusic Studio Tower → Orbital Spaceport: 951.9 units\nOrbital Spaceport → Double Strike Hangar: 178.9 units\nDouble Strike Hangar → Forum Plaza: 595.1 units\nLoop total: 2,401.0 coordinate 