A meeting ends; its buffer may not

HTML for this example

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

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>A meeting ends; its buffer may not</title>
<style>
:root{color-scheme:light;--ink:#1e2f3c;--accent:#214f77;--wash:#e9f0f5;--paper:#fff;--line:#b7c8d2}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--wash);color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;padding:24px 16px}main{max-width:960px;margin:auto;background:var(--paper);border:1px solid var(--line);border-top:7px solid var(--accent);box-shadow:0 12px 32px #1624320d}header{padding:26px 30px 20px;border-bottom:1px solid var(--line)}.kicker{font-weight:750;letter-spacing:.06em;color:var(--accent);margin:0 0 6px}h1{font-size:clamp(26px,5vw,38px);line-height:1.15;margin:0 0 12px;letter-spacing:-.025em}h2{font-size:22px;line-height:1.3;margin:0 0 16px}h3{font-size:18px;margin:0 0 10px}p{margin:0 0 14px}p:last-child{margin-bottom:0}.content{padding:26px 30px}.panel{padding:22px 0;border-bottom:1px solid var(--line)}.panel:first-child{padding-top:0}.panel:last-child{border-bottom:0}.cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}label{display:block;font-weight:650;margin:10px 0}input,textarea{display:block;font:inherit;width:100%;min-width:0;background:#fff;color:var(--ink);padding:11px 12px;border:1px solid #7f94a5;border-radius:5px;margin-top:6px}textarea{resize:vertical}button{font:inherit;font-weight:700;border:2px solid var(--accent);border-radius:5px;color:var(--accent);background:var(--paper);padding:10px 16px;min-height:46px;cursor:pointer}button:hover,button[aria-pressed="true"]{background:var(--accent);color:#fff}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #c77700;outline-offset:3px}.result{padding:16px 18px;border-left:5px solid var(--accent);background:var(--wash);margin:16px 0;white-space:pre-line}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.metric{border-top:4px solid var(--accent);padding:12px;background:var(--wash)}.big{font-size:28px;font-weight:780;display:block;line-height:1.2;font-variant-numeric:tabular-nums}.rows{display:grid;gap:12px}.record{border:1px solid var(--line);padding:16px;border-radius:4px}.record h3{color:var(--accent)}.muted{color:#445867}.tag{display:inline-block;padding:3px 10px;background:var(--wash);border:1px solid var(--line);border-radius:30px}.route{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.chip{display:inline-block;border:2px solid var(--accent);border-radius:10px;padding:9px 14px;background:white;font-weight:750}.prime{background:#dff0df}.diagram{padding:20px;background:var(--wash);border:1px solid var(--line);margin:16px 0}summary{cursor:pointer;font-weight:700;padding:12px 0}details{border-top:1px dashed var(--line);margin-top:14px}.board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:16px 0}.cell{font-size:16px;text-align:center;background:var(--wash);padding:6px 0;border:1px solid var(--line)}.cell.hit{background:var(--accent);color:white;font-weight:750}.staff{width:100%;height:auto;display:block;background:white}.staff text{font:18px system-ui;fill:var(--ink)}.shape-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.shape-row button{padding:12px}.shape{display:block;margin:6px auto;background:var(--accent);height:62px;width:62px}.circle{border-radius:50%}.triangle{background:transparent;width:0;height:0;border-left:34px solid transparent;border-right:34px solid transparent;border-bottom:62px solid var(--accent)}.tray{border:2px solid var(--accent);padding:14px;margin:12px 0;border-radius:8px}.counters{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.counter{border:1px solid var(--accent);border-radius:50%;width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;background:var(--wash);font-size:16px}.agenda{display:grid;grid-template-columns:1fr;gap:12px}.agenda p{border-left:4px solid var(--accent);padding:8px 14px;margin:0}.bar-row{margin:16px 0}.bar{height:24px;max-width:100%;background:var(--accent);border-radius:3px}.missing{padding:10px;border:2px dashed var(--accent)}.timeline-row{margin:16px 0}.track{position:relative;height:34px;background:var(--wash);border:1px solid var(--line);overflow:hidden}.segment{position:absolute;top:3px;height:26px;background:var(--accent)}.quote{font:26px/1.45 Georgia,serif;border-left:5px solid var(--accent);padding:18px;margin:18px 0;background:var(--wash)}.facts{padding:16px;background:var(--wash);border-top:4px solid var(--accent)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;font-family:ui-monospace,monospace;background:var(--wash);padding:16px}footer{padding:20px 30px;background:var(--wash);border-top:1px solid var(--line)}section,div,p,label,li{overflow-wrap:anywhere}ul,ol{padding-left:24px}.lesson{--accent:#4b3c79;--wash:#f0edf7}.meter{--accent:#176166;--wash:#e8f3f1}.meter header{background:#153f47;color:white}.meter .kicker{color:#ceebe5}.index{--accent:#3e566c;--wash:#edf1f5}.index .record{border-left:6px solid var(--accent)}.calendar{--accent:#824b25;--wash:#f6efe6}.montessori{--accent:#486047;--wash:#f1f1e5;--paper:#fffef7}.montessori h1,.montessori h2{font-family:Georgia,serif}.music{--accent:#343d75;--wash:#eef0f8}.music h1{font-family:Georgia,serif}.quotation{--accent:#204d79;--wash:#eaf0f7}.station{--accent:#6e522e;--wash:#f5efdf}.dice{--accent:#63398c;--wash:#f3edf9}.groups{--accent:#09685d;--wash:#e6f4ee}.wizard{--accent:#5b4595;--wash:#f1eef8}.wizard main{max-width:720px}.review{--accent:#7d3e4e;--wash:#f8edf0}.review h1{font-family:Georgia,serif}.factor{--accent:#286348;--wash:#e9f4ec}.service{--accent:#875118;--wash:#fcf0de}.statistics{--accent:#325891;--wash:#edf2fa}.hyperbole{--accent:#9a4928;--wash:#fbefe6}.hyperbole h1{font-family:Georgia,serif}@media(max-width:640px){body{padding:10px 8px}header,.content,footer{padding:20px}.cols{grid-template-columns:1fr;gap:16px}.metrics{grid-template-columns:1fr}.fields{grid-template-columns:1fr}.shape-row{gap:8px}.shape-row button{padding:8px}.shape{width:48px;height:48px}.shape.triangle{width:0;height:0;border-left-width:25px;border-right-width:25px;border-bottom-width:48px}.big{font-size:26px}.cell{padding:7px 0}.controls button{flex:1 1 auto}.quote{font-size:24px}}

</style></head><body class="calendar"><main><header><p class="kicker">C01 / BUFFER REVIEW / OCT 13, 2026 UTC</p><h1>A meeting ends; its buffer may not</h1><p>B01 confirmed in the fictional ledger: 09:30–10:00. Review window 09:00–11:00; intervals include start and exclude end.</p></header><div class="content"><div class="result" id="finding" aria-live="polite">Ready for an attempt.</div><div class="metrics"><div class="metric">Meeting<strong class="big">30 minutes</strong></div><div class="metric">Protected duration<strong class="big" id="protected-duration"></strong></div><div class="metric">Overlap<strong class="big" id="overlap"></strong></div></div><section class="panel "><h2>Compare protected time</h2><div class="timeline-row">B01 protected <strong id="protected-range"></strong><div class="track"><div class="segment" id="protected-bar"></div></div></div><div class="timeline-row">Proposed request <strong id="request-range"></strong><div class="track"><div class="segment" id="request-bar"></div></div></div><p>Timeline scale: 09:00 to 11:00 UTC.</p><div class="fields"><label for="start">Request start UTC<input id="start" type="time" value="10:00" ></label><label for="end">Request end UTC<input id="end" type="time" value="10:30" ></label><label for="before">Before buffer (minutes)<input id="before" type="number" value="15" min="0" max="60" step="1"></label><label for="after">After buffer (minutes)<input id="after" type="number" value="15" min="0" max="60" step="1"></label></div><div class="controls"><button type="button" id="check">Check overlap</button><button type="button" id="q01">Use Q01 10:00–10:30</button><button type="button" id="q02">Use Q02 10:15–10:45</button></div></section><section class="panel "><h2>Unsent owner-review wording</h2><div class="result" id="owner-request" aria-live="polite">Ready for an attempt.</div></section><section class="panel "><h2>Canceled history retained</h2><p>B02 · 10:30–11:00 · Canceled with R02. Not counted as occupied in this supplied state.</p><p>Other calendars, request-specific buffers and booking authority remain unknown. No time is held.</p><button type="button" id="reset">Reset Q01</button></section></div><footer><p>Local interval comparison only. No calendar connections, booking, reminders or external sending. Inputs are temporary.</p></footer></main><script>
(()=>{'use strict';const $=id=>document.getElementById(id);const text=(id,value)=>{$(id).textContent=value;};const on=(id,event,fn)=>$(id).addEventListener(event,fn);const clear=(ids,fn)=>ids.forEach(id=>on(id,'input',fn));const integer=(s,min,max)=>/^\d+$/.test(s)&&Number(s)>=min&&Number(s)<=max;const money=n=>'$'+n.toFixed(2);const normalize=s=>s.trim().toLowerCase().replace(/[.!?]$/,'');
const minutes=v=>/^\d{2}:\d{2}$/.test(v)?Number(v.slice(0,2))*60+Number(v.slice(3)):NaN;const stamp=n=>String(Math.floor(n/60)).padStart(2,'0')+':'+String(n%60).padStart(2,'0');function check(){const start=minutes($('start').value),end=minutes($('end').value),before=$('before').value,after=$('after').value;if(!Number.isFinite(start)||!Number.isFinite(end)||start<540||end>660||start>=end||!integer(before,0,60)||!integer(after,0,60)){text('finding','Unresolved: enter a forward request within 09:00–11:00 UTC and whole buffers 0–60.');['overlap','protected-duration','protected-range','request-range'].forEach(id=>text(id,'Unavailable'));text('owner-request','Correct the inputs before preparing a comparison.');$('request-bar').style.width='0%';$('protected-bar').style.width='0%';return;}const a=570-Number(before),z=600+Number(after),overlap=Math.max(0,Math.min(end,z)-Math.max(start,a));text('protected-range',stamp(a)+'–'+stamp(z)+' UTC');text('request-range',stamp(start)+'–'+stamp(end)+' UTC');text('protected-duration',(z-a)+' minutes');text('overlap',overlap+' minutes');text('finding',overlap?'Conflict: '+overlap+' minutes of protected time overlap.':'No overlap in this supplied comparison. Candidate only; availability and authority unconfirmed.');[['protected-bar',a,z],['request-bar',start,end]].forEach(([id,x,y])=>{$(id).style.left=Math.max(0,(x-540)/120*100)+'%';$(id).style.width=(Math.min(660,y)-Math.max(540,x))/120*100+'%';});text('owner-request','Proposed '+stamp(start)+'–'+stamp(end)+' UTC has '+overlap+' minutes overlap with B01 protected '+stamp(a)+'–'+stamp(z)+'. Please confirm other calendars, required request buffers and authority before booking. No request sent.');}on('check','click',check);on('q01','click',()=>{$('start').value='10:00';$('end').value='10:30';check();});on('q02','click',()=>{$('start').value='10:15';$('end').value='10:45';check();});on('reset','click',()=>{$('start').value='10:00';$('end').value='10:30';$('before').value='15';$('after').value='15';check();});clear(['start','end','before','after'],()=>{text('finding','Inputs changed. Check the current interval.');['overlap','protected-duration','protected-range','request-range'].forEach(id=>text(id,'Not checked'));['request-bar','protected-bar'].forEach(id=>{$(id).style.width='0%';$(id).style.left='0%';});text('owner-request','Current request not checked.');});check();
})();
</script></body></html>