/* JGOffice styles: scene box, name tags, speech bubbles, pause button. Sizes scale with the box (container units) so names stay readable at 375 px. */
.jg-office { position: relative; width: 100%; max-width: 760px; aspect-ratio: 224 / 136; overflow: hidden; contain: layout paint; container-type: inline-size; border-radius: var(--r-lg, 22px); border: 1px solid var(--border, rgba(42,118,80,.26)); background: #E3F1EA; }
.jg-office-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
.jg-office-lb { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font: 700 clamp(10px, 2.9cqw, 13px)/1 var(--jg-font, system-ui, sans-serif); letter-spacing: .04em; padding: .3em .5em .2em; background: #143D2B; color: #F2F8F5; border-bottom: 2px solid #5BA583; pointer-events: none; will-change: left, top; }
.jg-office-bub { position: absolute; transform: translate(-50%, -100%); max-width: 46%; width: max-content; padding: .35em .6em .4em; background: #fff; color: #11201A; border: 2px solid #143D2B; border-radius: 9px; font: 700 clamp(10px, 3cqw, 13px)/1.25 var(--jg-font, system-ui, sans-serif); text-align: center; pointer-events: none; opacity: 0; visibility: hidden; z-index: 2; transition: opacity .15s; }
.jg-office-bub.on { opacity: 1; visibility: visible; }
.jg-office-bub::after { content: ""; position: absolute; top: 100%; left: var(--tx, 50%); width: 8px; height: 8px; margin: -5px 0 0 -4px; background: #fff; border: solid #143D2B; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.jg-office-pp { position: absolute; right: 8px; bottom: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; font: 700 12px/1 var(--jg-font, system-ui, sans-serif); background: #2A7650; color: #fff; border: 0; border-radius: 999px; cursor: pointer; opacity: .9; z-index: 3; }
.jg-office-pp:focus-visible { outline: 3px solid #143D2B; outline-offset: 2px; }
@media (max-width: 480px) { .jg-office { border-radius: 14px; } }
@media print { .jg-office { display: none; } }
