Welcome packet work instruction
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>Welcome packet work instruction</title><style>*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--bg,#eef1f4);color:var(--ink,#233449);font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}main{max-width:1040px;margin:auto;padding:26px 28px 44px}header{margin-bottom:20px}h1{font-size:clamp(26px,4vw,36px);letter-spacing:-.035em;line-height:1.15;margin:5px 0 10px}h2{font-size:21px;line-height:1.3;margin:0 0 15px}h3{font-size:17px;margin:0 0 9px}p{margin:8px 0 16px}.kicker{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:750;color:var(--accent,#315b87)}.muted,small{color:#556473}.panel{margin:20px 0;padding:24px;border:1px solid var(--line,#ccd5df);border-radius:10px;background:#fff}.hero{padding:24px;background:var(--hero,#183b5c);color:#fff;border-radius:12px;margin:18px 0}.hero .kicker,.hero small{color:#d9e5ef}.big{font-size:clamp(32px,5vw,52px);line-height:1.15;font-weight:750;letter-spacing:-.035em;overflow-wrap:anywhere;margin:10px 0 15px}.row{display:flex;flex-wrap:wrap;gap:15px;align-items:end}.row>label{flex:1;min-width:140px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.thirds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}label{display:block;font-size:14px;font-weight:650}input,select,textarea{font:inherit;font-size:16px;color:inherit;display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #a9b4c1;border-radius:6px;background:white;min-width:0}input[type=checkbox]{display:inline;width:auto;margin:0 8px 0 0;accent-color:var(--accent,#315b87)}textarea{min-height:100px;resize:vertical}button{font:inherit;font-weight:650;min-height:44px;border:1px solid var(--accent,#315b87);border-radius:6px;background:var(--accent,#315b87);color:white;padding:10px 16px;cursor:pointer}button.secondary{background:white;color:var(--accent,#315b87)}button:disabled{opacity:.5;cursor:default}button[aria-pressed=true]{box-shadow:0 0 0 3px #eab655}button:hover:not(:disabled){filter:brightness(.94)}:focus-visible{outline:3px solid #e5a72f;outline-offset:3px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}[hidden]{display:none!important}.error{color:#a3232a;font-weight:650}.error:not(:empty){padding:12px;background:#fff0ed;border-left:4px solid #ab3439;margin:14px 0}.note{padding:14px;background:#edf2f6;border-radius:6px;margin:14px 0}.mono,pre{font-family:ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin:0}.mono{overflow-wrap:anywhere}table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}th,td{text-align:left;vertical-align:top;overflow-wrap:anywhere;padding:11px 8px;border-bottom:1px solid #d4dce4}th{font-size:12px;text-transform:uppercase;letter-spacing:.035em;color:#536372}th:first-child,td:first-child{padding-left:0}.tag{display:inline-block;padding:4px 8px;border:1px solid currentColor;border-radius:4px;font-size:12px;font-weight:750}.rule{border-top:1px solid #cbd4dd;padding-top:18px}.line{height:30px;border-bottom:1px solid #aab5bf}.stat{font-size:34px;line-height:1.15;font-weight:750}.stat small{font:14px system-ui;display:block;margin-top:8px}details{margin:20px 0;border-top:1px solid #cbd4dd;padding:18px 0}summary{font-weight:700;cursor:pointer}details p{margin-top:15px}a{color:var(--accent,#315b87)}footer{font-size:13px;color:#556473;margin-top:25px}fieldset{min-width:0;border:1px solid #c8d2db;border-radius:7px;padding:18px;margin:15px 0}legend{font-weight:750;padding:0 6px}@media(max-width:720px){main{padding:20px}.panel,.hero{padding:20px}.thirds{gap:10px}}@media(max-width:540px){main{padding:16px}.grid,.thirds{grid-template-columns:1fr}.panel,.hero{padding:18px}.row{gap:12px}.row>label{min-width:100px}h1{font-size:27px}th,td{padding:10px 5px;font-size:13px}.big{font-size:37px}}.surface{background:white;border:1px solid #ccd5df;border-radius:10px;padding:24px;margin:18px 0}.metrics{display:flex;gap:34px;flex-wrap:wrap}.metric b{font-size:clamp(32px,5vw,52px);line-height:1.1;display:block;letter-spacing:-.04em}.metric span{display:block;margin-top:8px;font-size:14px}.strip{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;margin:22px 0}.unit{padding:10px 3px;text-align:center;background:#e5f0eb;border-bottom:4px solid #327660;font-size:13px;font-weight:700}.unit.rework{background:#fff0d5;border-color:#aa701d}.unit.fail{background:#f9e2e0;border-color:#ab3d35}.ledger-row{display:grid;grid-template-columns:100px 1fr 140px;gap:18px;padding:18px 0;border-bottom:1px solid #d2dbe3;align-items:start}.ledger-row p{margin:5px 0}.amount{text-align:right;font-size:22px;font-weight:750}.pill{display:inline-block;border-radius:20px;background:#e7edf2;padding:5px 10px;font-size:12px;font-weight:700}.timeline{border-left:3px solid #c7d4de;padding:0 0 0 22px;margin:16px 0}.timeline article{padding:10px 0 18px}.timeline h3{margin-bottom:5px}.timeline p{margin:5px 0}.artifact{font-family:Georgia,serif}.warning{background:#fff3db;border-left:4px solid #a66d18;padding:15px}.empty{color:#5d6771;font-style:italic}.check{color:#22694f}.bad{color:#9a332e}button.linklike{padding:8px 12px;min-height:40px;background:white;color:var(--accent,#315b87)}@media(max-width:540px){.surface{padding:18px}.ledger-row{grid-template-columns:65px 1fr;gap:12px}.ledger-row .amount{grid-column:2;text-align:left}.strip{gap:3px}.unit{font-size:11px;padding:8px 0}.metrics{gap:22px}.metric b{font-size:38px}}.work{border-top:7px solid #9b7429}.kit{display:flex;gap:14px;align-items:center;justify-content:space-between;margin:25px 0;padding:20px;background:#f6f0df}.kit div{flex:1}.kit b{display:block;font-size:30px}.kit span{font-size:23px}@media(max-width:540px){.kit{gap:7px;padding:12px}.kit div{font-size:13px}.kit b{font-size:24px}}</style></head><body style="--bg:#f6f3e9;--accent:#806023;--ink:#403a2b"><main><header><div class="kicker">Fictional working example</div><h1>Welcome packet work instruction</h1><p class="muted">Review the three-unit job and hold the label exception for documented recheck.</p></header><section class="surface work"><div class="kicker">WI-P01 · Rev B · Draft, not effective</div><h2>J01 / P01 · Welcome Packet</h2><div class="metrics"><div class="metric"><b>3</b><span>Units assembled in fixture</span></div><div class="metric"><b>2</b><span>Ready for review</span></div><div class="metric"><b>1</b><span>On hold · U03</span></div></div><div class="kit"><div><b>1</b> folder</div><span>+</span><div><b>2</b> Rev B cards</div><span>+</span><div><b>1</b> matching label</div></div><p>Batch final contents: 3 folders · 6 Rev B cards · 3 labels. No units released.</p></section><section class="panel"><h2>Controlled sequence</h2><label for="step">Step to inspect<select id="step"><option value="S01">S01 · Verify job and authority</option><option value="S02">S02 · Assemble the contents</option><option value="S03">S03 · Match the label</option><option value="S04">S04 · Final review</option></select></label><p id="stepText" class="note"></p></section><section class="surface"><h2>Unit record and exception</h2><label for="unit">Unit record<select id="unit"><option value="U03">U03 · Hold</option><option value="U01">U01 · Ready for review</option><option value="U02">U02 · Ready for review</option></select></label><div id="unitRecord" class="timeline"></div></section><section class="panel"><h2>Try a component check</h2><p>Separate what-if check; it does not inspect or update a physical packet.</p><div class="grid"><label for="count">Cards per packet · integer 0–10<input id="count" value="2" autocomplete="off"></label><label for="revision">Card revision<select id="revision"><option value="B">Rev B</option><option value="A">Rev A</option></select></label></div><p id="component" class="note" aria-live="polite"></p></section><details><summary>Approval and unresolved source details</summary><p>Actual component IDs, Rev B content, and the authoritative label text/revision key must be confirmed. Draft approval and effective date are unknown. S04 verifier, review date, recheck, and release evidence remain blank.</p><p>U03’s original L03 misspelling is retained. R03 is a proposed replacement, not a completed correction. Rejected L03 plus proposed R03 are history entries, not four labels in the finished three-unit batch. Actual material consumption is unknown.</p></details><footer>Local session only. Nothing is sent, saved, approved, or submitted. Keep maintained source records authoritative.</footer></main><script>const $=id=>document.getElementById(id);const esc=s=>String(s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));const money=n=>'$'+n.toFixed(2);
const steps={S01:'Verify J01, product P01, current WI-P01 revision, authorization, and component identities before starting. Approval and effective date are not supplied.',S02:'For each packet, place one folder and two cards. Count two cards and compare their actual content and revision with the approved Rev B source; count alone is insufficient.',S03:'Match label wording and revision key to the approved source. Separate a mismatching label and retain the original finding; do not release the affected unit.',S04:'Record actual final checks, verifier, and date. U01/U02 are ready for review only. U03 needs documented correction and reinspection. No release evidence is supplied.'};
const ledger=[{id:'U01',state:'Ready for review',label:null},{id:'U02',state:'Ready for review',label:null},{id:'U03',state:'Hold',label:'L03',finding:'Misspelled label',proposed:'R03'}];function component(count,rev){if(!/^[0-9]+$/.test(count)||Number(count)>10)return 'Enter an integer from 0 to 10.';if(!['A','B'].includes(rev))return 'Unknown revision.';return Number(count)!==2?'Count mismatch: exactly two cards are required.':rev!=='B'?'Revision mismatch: two Rev A cards do not satisfy Rev B.':'Count and selected revision match the illustration. Actual content, IDs, and physical inspection remain unverified.'}
function render(){const u=ledger.find(x=>x.id===$('unit').value);$('stepText').textContent=steps[$('step').value];$('component').textContent=component($('count').value,$('revision').value);$('unitRecord').innerHTML='<article><h3>'+u.id+' · '+u.state+'</h3><p>Supplied assembly record: one folder, two Rev B cards, label '+(u.label||'(actual label ID unconfirmed)')+'.</p></article>'+(u.finding?'<article><h3>Original finding · L03</h3><p>Misspelled label. Unit remains on hold.</p></article><article><h3>Proposed action · R03</h3><p>Replace L03 only after confirming authoritative text. Replacement, date, verifier, and recheck: not recorded.</p></article>':'<article><h3>Awaiting final review</h3><p>Verifier, review date, and release evidence: not recorded.</p></article>')+'<p class="warning">Draft procedure. No approval or release is established by this screen.</p>';}
['step','unit','revision'].forEach(x=>$(x).addEventListener('change',render));$('count').addEventListener('input',render);render();</script></body></html>