.dy-plan .outing-receipt{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:clamp(5px,1vw,16px);padding:4px clamp(5px,1vw,15px);border:1px dashed #9ab99d;border-radius:6px;background:#d5e5cf;color:#2f403c;min-height:36px}
.dy-receipt-origin{display:grid;gap:1px;font:800 clamp(11px,1.4vw,18px)/1.05 system-ui,sans-serif}
.dy-receipt-origin small{font:750 clamp(9px,1.05vw,14px)/1 var(--mono);color:#416355}
.dy-receipt-find{font:650 clamp(10px,1.22vw,15px)/1.1 system-ui,sans-serif}
.dy-receipt-find:empty{visibility:hidden}
.dy-receipt-mood{font:750 clamp(10px,1.24vw,16px)/1.1 var(--mono);white-space:nowrap}
.dy-plan .outing-receipt .dy-chips{gap:clamp(5px,.8vw,12px)}
@media(max-width:760px){.dy-receipt-find{font-size:10px}.dy-plan .outing-receipt{gap:4px}}

/* Keep the work surface above thumb controls, with the subject in view at short landscape heights. */
.oe-frame{position:relative;min-height:0;overflow:hidden;background:#998995}
.oe-frame canvas{width:100%;height:100%;display:block}
.outing-episode{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;padding:0}
.oe-place,.oe-progress{position:absolute;top:9px;padding:6px 10px;border:1px solid #fbe8c348;border-radius:7px;background:#272536e8;color:#ffebca;font:750 clamp(10px,1.4vw,15px)/1 var(--mono)}
.oe-place{left:max(16px,2.5vw)}.oe-progress{right:max(16px,2.5vw);color:#b0edd4}
.oe-counter{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:80px;padding:9px max(2.5vw,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(2.5vw,env(safe-area-inset-left));border-top:1px solid #9a808878;background:#2a263a}
.oe-caption{flex:1;min-width:0}.oe-caption h2{font:800 italic clamp(17px,2.5vw,29px)/1.03 var(--display);margin:0;color:var(--cream)}
.oe-caption p{font:550 clamp(12px,1.45vw,16px)/1.22 system-ui,sans-serif;color:#efe1d5;margin:4px 0 0}.oe-caption .oe-hint{color:#a7e2cb}
.oe-caption p:empty{display:none}
.oe-actions{display:flex;align-items:center;justify-content:end;gap:7px;flex:0 1 auto;max-width:49%}
.oe-actions button{min-height:44px;line-height:1.12;font-size:clamp(12px,1.5vw,17px);padding:6px 13px}
.oe-actions button:has(canvas){display:grid;justify-items:center;align-content:center;gap:2px;padding:3px 10px;min-width:60px}
.oe-actions button canvas{width:41px;height:27px}.oe-aim{display:grid;color:#ffddac;font:650 11px var(--mono);gap:4px}.oe-aim input{width:clamp(83px,13vw,170px);height:25px;accent-color:#a6e7c9}
@media(max-height:350px){.oe-counter{min-height:65px;padding-block:6px;gap:9px}.oe-actions{gap:4px}.oe-actions button{padding-inline:8px}.oe-caption p{font-size:11px}}

.oe-frame>.scene-bubble {
  position:absolute; top:clamp(31px,9%,68px); width:max-content;
}
.oe-frame>.scene-bubble[data-kind=npc] {
  left:56%; max-width:min(41%,340px); --bubble-tail-x:15%;
}
.oe-frame>.scene-bubble[data-kind=thought] {
  left:clamp(10px,calc(46% - 200px),30%); max-width:min(49%,285px); --bubble-tail-x:80%;
}
.dy-scene>.scene-bubble {position:absolute;top:7%;left:5%;max-width:min(85%,310px)}



/* The close-up uses the same physical objects as the workbench. */
.oe-work-surface{position:absolute;right:max(14px,2.4vw);top:36px;bottom:9px;width:min(49%,490px);box-sizing:border-box;display:flex;flex-flow:column;justify-content:center;gap:7px;padding:9px 12px;background:#f5e8cbeF;color:#393646;border:2px solid #5a515d;border-radius:10px;box-shadow:2px 3px 0 #34334463}
.oe-work-guide{display:flex;align-items:center;gap:6px;min-height:20px;font:750 clamp(11px,1.65vw,16px)/1.1 var(--body);color:#4f4950}
.oe-frame .oe-work-guide canvas{flex:none;width:40px;height:25px;background:#fff7e2;border:1px solid #c9b9a0;border-radius:4px}
.oe-work-surface .oe-actions{flex:none;justify-content:stretch;max-width:none;width:100%;gap:5px}
.oe-work-surface .oe-actions button{flex:1;min-width:0;min-height:44px;padding:3px 4px;gap:0;border:1.5px solid #82776f;border-bottom:3px solid #897b74;border-radius:6px;background:#fff7e2;color:#363449;font:750 clamp(11px,1.55vw,15px)/1.1 var(--body)}
.oe-work-surface .oe-actions button:is(:hover,:focus-visible){outline:2px solid #477f79;outline-offset:1px;background:#fffbea}
.oe-work-surface .oe-actions button[aria-pressed=true]{opacity:1;background:#c4e4cc;border-color:#4e8376}
.oe-work-surface .oe-actions button[aria-pressed=true] span:before{content:'✓ ';color:#31674e}
.oe-frame .oe-work-surface button canvas{width:min(100px,100%);height:clamp(36px,14.5dvh,65px);object-fit:contain}
.outing-episode:is([data-outing=yard],[data-outing=market],[data-outing=workshop]) .oe-frame>.scene-bubble[data-kind=thought]{
  left:calc(23% + 12px);max-width:min(43%,300px);--bubble-tail-x:13px
}
@media(max-height:350px){.oe-work-surface{top:32px;bottom:5px;gap:3px;padding:5px 7px}.oe-work-guide{font-size:11.5px}.oe-work-surface .oe-work-guide canvas{width:37px;height:24px}}
