:root{--ink:#183c43;--teal:#176e68;--paper:#f5f3ec}body{background:var(--paper);color:var(--ink)}header{padding:16px 30px;align-items:center;background:#fbfaf6}header h1{font-size:29px;letter-spacing:-1.5px}header h1 small{font-size:15px;letter-spacing:0;font-weight:400}.brandDot{color:#d38b4d}main{padding:20px 30px;max-width:1600px}.intro{margin-bottom:18px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:#66827d}.intro h2{font-size:29px;letter-spacing:-.8px;margin:5px 0}.intro p{font-size:13px;margin:0;color:#667d79}button,select,input{border-radius:7px;padding:9px 12px;font-size:13px}button:hover{background:#e4efea}button.primary,.active{background:#176e68;color:white}section.controls{margin-bottom:9px;gap:8px}#question{font-size:15px;background:#fffdf8}.examples{display:flex;margin:10px 0 16px;gap:7px}.examples button{padding:4px 8px;font-size:11px}.examples [data-question]:nth-of-type(n+5){display:none}#experiment{margin:0;border:1px solid #d5ddd7;border-bottom:0;border-radius:12px 12px 0 0;background:#fffdf9;padding:10px 12px;align-items:center}#showAnswer{background:#e8a261;color:#2d342e;border-color:#d68c49;font-weight:650}.gapLabel{display:flex;align-items:center;font-size:12px;margin-left:8px;gap:8px}.gapLabel input{min-width:80px;width:110px;padding:0;accent-color:var(--teal)}#trialState{font-size:11px;margin-left:auto;color:#6b7d77}#layers{display:flex;align-items:center;gap:16px;padding:10px 14px;background:#fffdf9;border:1px solid #d5ddd7;border-radius:0 0 12px 12px;margin-bottom:12px;font-size:12px}#layers label{white-space:nowrap;display:flex;align-items:center;gap:4px}#layers input{min-width:0;accent-color:var(--teal)}#layers span{margin-left:auto;color:#70857d;font-size:11px}.workspace{grid-template-columns:minmax(0,1fr) 350px;gap:14px}.canvas{height:540px;background:#e9eeea;border-radius:12px}.tag{font-size:10px;bottom:10px;top:auto;left:12px;color:#657b73;background:#f9fbf8c9}.level{font:11px system-ui;max-width:145px;padding:5px 7px;border-left:2px solid #557d70;background:#f9fbf4e8;box-shadow:0 2px 9px #183c4308}.level small{display:block;font-size:9px;color:#648078;margin-top:2px}.level:after{content:'';position:absolute;left:100%;top:50%;width:var(--line,12px);border-top:1px solid #6e8b7866}aside{padding:18px;max-height:540px;border:1px solid #d9e1d9;background:#fffefa}#value{font-size:36px;font-weight:600;letter-spacing:-1px}#scope{font-size:12px}#formula{font-size:12px;margin:12px 0}#meshNotice{font-size:11px!important;line-height:1.4}#contributors{max-height:150px}.contributor{font:11px system-ui;margin:6px 0;background:#f7f9f5}.buttons{margin:10px 0;gap:6px}.buttons button{padding:7px 9px;font-size:11px}#detail{font-size:10px;max-height:90px}#selectedLabel{font-size:12px!important}#evidenceSummary{font-size:11px}#mobileResult{display:none}footer{font-size:11px;margin-top:12px}
@media(min-width:1100px) and (min-height:900px){.canvas,aside{height:600px;max-height:600px}}
@media(max-width:700px){header{padding:10px 14px}header h1{font-size:25px}header h1 small{font-size:12px}header nav{display:block;font-size:11px}header>small{display:none}main{padding:10px}.intro{margin-bottom:10px}.intro h2{font-size:21px}.intro p{display:none}.eyebrow{font-size:8px}.controls select{padding:6px;font-size:11px;max-width:48%}#contextView{display:none}#question{min-width:170px;font-size:12px;padding:8px}#ask{font-size:11px;padding:7px}.examples{flex-wrap:nowrap;overflow:auto;margin:7px 0}.examples button{white-space:nowrap;font-size:10px}.examples span{display:none}#experiment{gap:5px;padding:7px}#experiment button{padding:7px;font-size:11px}.gapLabel{margin-left:0;font-size:10px}#trialState{font-size:9px}#layers{flex-wrap:wrap;gap:5px 11px;padding:6px 8px;margin-bottom:0;font-size:10px}#layers span{display:none}#layers input{margin:0}.workspace{display:block}.canvas{height:365px;border-radius:0 0 12px 12px}.level{font-size:9px;max-width:107px;padding:3px 4px}.level small{font-size:8px}.level:after{max-width:28px}#mobileResult{display:flex;gap:12px;align-items:center;background:#fdfcf5;padding:9px 10px;border:1px solid #d5ddd7}#mobileResult b{font-size:22px;white-space:nowrap;color:#176e68}#mobileResult span{font-size:10px;line-height:1.4}aside{margin-top:10px;max-height:none;padding:14px}#value{font-size:28px}#contributors{max-height:180px}.tag{font-size:9px}footer{font-size:10px}}
/* Keep the whole desktop journey above the fold. */
@media(min-width:701px){header{padding:12px 30px}.intro{margin-bottom:12px}.intro h2{font-size:26px}.intro p{display:none}main{padding-top:15px}.examples{margin:8px 0 11px}.canvas,aside{height:calc(100vh - 385px);min-height:420px;max-height:650px}}
#experiment button.active{background:#176e68;color:#fff;border-color:#176e68}
.tag{white-space:pre-line;max-width:94%;line-height:1.5;pointer-events:none}

/* Short desktops: keep source stack, answer and selected identity in view. */
@media(min-width:701px) and (max-height:850px){
 header{padding:8px 30px}.intro{margin-bottom:8px}.intro h2{font-size:23px;margin:3px 0}.eyebrow{display:none}
 main{padding-top:10px}section.controls{margin-bottom:6px}.examples{margin:6px 0 8px}
 #experiment{padding:7px 12px}#layers{padding:7px 14px;margin-bottom:8px}
 .canvas,aside{height:calc(100vh - 340px);min-height:0;max-height:none}aside{padding:12px}
}
