Make every destination agree

HTML for this example

Select the code and use your copy shortcut. Changes in this preview are temporary.

<!doctype html>
<html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Make every destination agree</title><style>
:root{color-scheme:light;--accent:#995022;--wash:#fff0d9;--ink:#202d3b;--paper:#fffdf9}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#eeeae2;font:17px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}main{max-width:980px;margin:auto;padding:28px 24px 40px}header{border-top:6px solid var(--accent);padding:20px 0 24px}.kicker{color:var(--accent);font-weight:750;letter-spacing:.06em;margin:0 0 8px}h1{font:700 clamp(30px,5vw,46px)/1.15 Georgia,serif;margin:0 0 14px;max-width:780px}h2{font-size:23px;line-height:1.3;margin:0 0 14px}h3{font-size:19px;margin:12px 0 8px}p{margin:0 0 16px}button,input,textarea,select{font:inherit}button{background:white;border:1px solid #87949b;color:var(--ink);border-radius:8px;padding:11px 16px;min-height:48px;cursor:pointer;font-weight:650}button:hover{background:var(--wash)}button[aria-pressed=true],button.primary{background:var(--accent);color:white;border-color:var(--accent)}:focus-visible{outline:3px solid #b45a1e;outline-offset:3px}label{display:block;font-weight:650;margin:14px 0 6px}input:not([type=checkbox]):not([type=radio]),textarea,select{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #80909b;border-radius:7px;padding:11px;background:white;color:var(--ink)}input[type=checkbox],input[type=radio]{width:21px;height:21px;accent-color:var(--accent)}textarea{resize:vertical}.panel{background:var(--paper);border:1px solid #ccd2d1;border-radius:12px;padding:24px;margin-bottom:20px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.two>.panel{margin:0}.two{margin-bottom:20px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.result{padding:18px;background:var(--wash);border-left:5px solid var(--accent);margin-top:18px;white-space:pre-line;overflow-wrap:anywhere}.note{color:#465565;font-size:16px}.strip{padding:18px;background:var(--wash);border-radius:8px;margin-bottom:18px}table{border-collapse:collapse;width:100%;font-size:16px;table-layout:fixed}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #cbd0d1;overflow-wrap:anywhere;vertical-align:top}th{background:var(--wash)}ol,ul{padding-left:24px}li+li{margin-top:8px}pre{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}code{font-size:16px}.grid{display:grid;gap:5px;max-width:440px}.grid button{padding:5px;min-width:0}.grid input{padding:5px!important;text-align:center;font-weight:750}blockquote{font:500 26px/1.5 Georgia,serif;margin:16px 0}footer{font-size:16px;color:#465565;margin-top:22px}[hidden]{display:none!important}svg{display:block;max-width:100%;height:auto}mark{background:#e0efad;color:var(--ink)}@media(max-width:560px){main{padding:18px 12px 28px}.panel{padding:20px 16px}.two{grid-template-columns:minmax(0,1fr)}h1{font-size:32px}.actions button{flex:1 1 135px}th,td{padding:8px 5px}.grid button{min-height:40px}blockquote{font-size:24px}}
</style></head><body><main><header><p class="kicker">EVENT OPERATIONS · ROTATION WORKBENCH</p><h1>Make every destination agree</h1><p>Inspect the master, group routes, and station coverage together. Fictional groups; actual event approvals remain separate.</p></header><div class="strip">09:00–09:42 · 36 activity + 6 transition = <strong>42 minutes</strong><br>18 planned people · 54 participant-station visits</div><div class="actions"><button type="button" id="conflict">Load round-two conflict</button><button type="button" id="repair">Repair Green R2 → S1</button><button type="button" id="reset">Reset rotation</button></div><section class="panel"><h2>Master rotation</h2><div id="master"></div><div id="conflicts" class="result" role="status" aria-live="polite"></div></section><div class="two"><section class="panel"><h2>Group route</h2><div class="actions"><button type="button" id="group0">Amber</button><button type="button" id="group1">Blue</button><button type="button" id="group2">Green</button></div><div id="route" class="result" role="status" aria-live="polite"></div></section><section class="panel"><h2>Station coverage</h2><div id="coverage"></div></section></div><section class="panel"><h2>Readiness remains to confirm</h2><p>Actual leads L1/L2/L3, materials, location, access, supervision, weather backup, date/time basis and organizer approval are unconfirmed. Arrival and handoff counts remain blank.</p></section><footer>Original fictional example. Changes remain in this open page and are not saved.</footer><noscript>JavaScript is required for the local controls. The accompanying article contains worked examples.</noscript></main><script>
(()=>{'use strict';const $=id=>document.getElementById(id);
const groups=['Amber','Blue','Green'],times=['09:00–09:12','09:15–09:27','09:30–09:42'];let grid=[[1,2,3],[2,3,1],[3,1,2]],selected=0;function table(headers,rows){return '<table><thead><tr>'+headers.map(x=>'<th>'+x+'</th>').join('')+'</tr></thead><tbody>'+rows.map(row=>'<tr>'+row.map(x=>'<td>'+x+'</td>').join('')+'</tr>').join('')+'</tbody></table>';}function render(){$('master').innerHTML=table(['Round / time',...groups],grid.map((r,i)=>['R'+(i+1)+' '+times[i],...r.map(s=>'S'+s)]));$('route').textContent=groups[selected]+': '+grid.map((r,i)=>'R'+(i+1)+' S'+r[selected]).join(' → ');$('coverage').innerHTML=table(['Station / lead','R1','R2','R3'],[1,2,3].map(s=>['S'+s+' / L'+s,...grid.map(row=>groups.filter((_,i)=>row[i]===s).join(' + ')||'EMPTY')]));const errors=[];grid.forEach((r,i)=>[1,2,3].forEach(s=>{const n=r.filter(x=>x===s).length;if(n!==1)errors.push('R'+(i+1)+' S'+s+': '+(n===0?'empty':n+' groups ('+groups.filter((_,j)=>r[j]===s).join(' + ')+')'));}));$('conflicts').textContent=errors.length?errors.join(' / '):'No station conflicts in the sample rotation. Organizer readiness remains unconfirmed.';}groups.forEach((_,i)=>$('group'+i).addEventListener('click',()=>{selected=i;render();}));$('conflict').addEventListener('click',()=>{grid[1][2]=3;render();});$('repair').addEventListener('click',()=>{grid[1][2]=1;render();});$('reset').addEventListener('click',()=>{grid=[[1,2,3],[2,3,1],[3,1,2]];selected=0;render();});render();
})();
</script></body></html>