
#paws-office {
  --ink: light-dark(#332c3d, #f1eaf5);
  --sub: light-dark(#635768, #c3b7cc);
  --paper: light-dark(#fffcf6, #251f2a);
  --soft: light-dark(#efe7f2, #382d41);
  --line: light-dark(#d8cadb, #51425b);
  --plum: light-dark(#694579, #d8b0eb);
  --on-plum: light-dark(#fffaff, #25162e);
  --scene-text-shadow: 0 1px 2px #271a22, 0 0 3px #271a22, 0 0 6px #271a22;
  font: 15px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
#paws-office [hidden] { display: none !important }
#paws-office header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line);
}
#paws-office .brand { font-weight: 690; letter-spacing: .025em }
#paws-office section { padding: clamp(14px, 4vw, 29px) }
#paws-office h2, #paws-office p { margin: 0 }
#paws-office h2 { font-size: clamp(22px, 4vw, 29px); line-height: 1.2; font-weight: 680 }
#paws-office p { color: var(--sub); margin-top: 6px }
#paws-office button {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 9px; min-height: 44px; padding: 6px 11px;
}
#paws-office button.primary, #paws-office button[aria-pressed="true"] {
  color: var(--on-plum); background: var(--plum); border-color: var(--plum);
}
#paws-office button:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px }
#paws-office .welcome { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: center }
#paws-office .welcome button { margin-top: 14px }
#paws-office .office-preview-image {
  display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border-radius:10px;
}
#paws-office small { color: var(--sub) }
#paws-office .entry-options { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px }
#paws-office .entry-options button { margin-top:0 }
#paws-office .guest-form { margin-top:12px; display:grid; gap:6px; max-width:380px }
#paws-office .guest-form input { font:inherit; min-height:44px; min-width:0; box-sizing:border-box; width:100%; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:8px; padding:6px 9px }
#paws-office .guest-form button { margin-top:0; justify-self:start }
.office-page.in-office { overflow:hidden }
.office-page.in-office > .top,
.office-page.in-office .office-preview,
.office-page.in-office #paws-office > header { display:none }
.office-page.in-office .office-content { width:auto; max-width:none; margin:0 }
.office-page.in-office #paws-office {
  position:fixed; inset:0; height:100dvh; border:0; border-radius:0;
}
#paws-office [data-office] { position:absolute; inset:0; isolation:isolate; padding:0 }
#paws-office .room-toolbar {
  position:absolute; z-index:3;
  top:max(12px,env(safe-area-inset-top));
  left:max(12px,env(safe-area-inset-left)); right:max(12px,env(safe-area-inset-right));
  display:flex; align-items:start; justify-content:space-between; gap:8px;
  pointer-events:none;
}
#paws-office .room-toolbar button { flex:none }
#paws-office .room-help { min-width:0; max-width:24rem }
#paws-office .room-help h2 { font-size:16px }
#paws-office .room-help p { font-size:13px; margin-top:2px }
#paws-office .room-touch-help { display:none }
#paws-office .room-key-help {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
@media (pointer:coarse) {
  #paws-office .room-mouse-help { display:none }
  #paws-office .room-touch-help { display:inline }
}
#paws-office .room-popover {
  position:absolute; z-index:2; width:max-content; max-width:min(270px,calc(100% - 24px));
  max-height:calc(100% - 24px); overflow:auto; overscroll-behavior:contain;
  padding:4px; pointer-events:none;
}
#paws-office :is(.room-help, .room-popover) :is(h2, strong, p, li) {
  color:#fffaf6; text-shadow:var(--scene-text-shadow);
}
#paws-office :is(.room-toolbar, .room-popover) button {
  position:relative; min-width:44px; padding:0 8px; border:0;
  font-size:14px; line-height:1.35;
  pointer-events:auto; color:#fffaf6; background:transparent;
  text-shadow:var(--scene-text-shadow);
}
#paws-office :is(.room-toolbar, .room-popover) button::after {
  content:""; position:absolute; inset:7px 2px; pointer-events:none;
  border:1px solid #fffaf6b3; border-radius:6px; box-shadow:0 0 0 1px #271a2280;
}
#paws-office :is(.room-toolbar, .room-popover) button:focus-visible { outline-color:#fffaf6 }
#paws-office .popover-heading, #paws-office .popover-actions { display:flex; align-items:center; gap:4px; flex-wrap:wrap }
#paws-office .popover-heading { justify-content:space-between }
#paws-office .popover-actions { margin-top:4px }
#paws-office .room-popover > .popover-actions { margin:0 }
#paws-office [data-pet-action][aria-disabled="true"] { opacity:.62; cursor:default }
#paws-office .room-popover:is([data-exhibit],[data-projection-panel]) {
  width:min(505px,calc(100% - 24px));
  max-width:none;
  max-height:min(72dvh,calc(100% - 90px));
  pointer-events:auto;
}
#paws-office .latest-projection time,
#paws-office .latest-projection h3,
#paws-office .latest-projection [data-projection-counter] {
  color:#fffaf6; text-shadow:var(--scene-text-shadow);
}
#paws-office .latest-projection h3 { margin:3px 0 8px; font-size:17px; line-height:1.38 }
#paws-office .latest-projection time { font-size:13px }
#paws-office .latest-projection p { margin:8px 0; font-size:14px; line-height:1.5 }
#paws-office .latest-projection a {
  display:inline-flex; align-items:center; min-height:44px;
  color:#fffaf6; text-shadow:var(--scene-text-shadow); text-decoration:underline;
}
#paws-office .projection-images {
  display:grid; grid-template-columns:minmax(0,2fr); gap:8px;
}
#paws-office .projection-images:has(> img:first-child:not([hidden])) {
  grid-template-columns:minmax(0,1fr) minmax(0,2fr);
}
#paws-office .projection-images img {
  display:block; width:100%; height:clamp(112px,31dvh,248px); object-fit:contain;
  background:#2a2034; border:1px solid #c7aecf; border-radius:5px;
}
#paws-office .exhibit-photos figure { min-width:0; margin:0 }
#paws-office .exhibit-photos img {
  width:100%; height:auto; max-height:54dvh; display:block; object-fit:contain;
  background:#57453d; border:1px solid #e0c59b; border-radius:5px;
}
#paws-office .exhibit-photos figcaption {
  color:#fffaf6; text-shadow:var(--scene-text-shadow);
  font-size:14px; line-height:1.35; padding-top:3px;
}
#paws-office .room {
  position:absolute; inset:0;
  overflow:hidden;
  background:#362b30;
  cursor:crosshair;
  touch-action:none;
  user-select:none;
}
#paws-office .room.is-over-display { cursor:pointer }
#paws-office .room.is-looking, #paws-office .room.is-looking .avatar { cursor:grabbing }
#paws-office .room:focus-visible { outline:2px solid var(--plum); outline-offset:-3px }
#paws-office .room-3d { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none }
#paws-office .has-3d-room .room-stage { width:100% !important; height:100% !important; transform:none !important }
#paws-office .has-3d-room :is(.scene,.foreground-table,.pet-portrait,.human-portrait,.pet-treat) { display:none }
#paws-office .has-3d-room .is-loading-pet-mesh .pet-portrait { display:block; width:100%; height:100%; }
#paws-office .has-3d-room .avatar::before { content:none }
#paws-office .has-3d-room .avatar {
  left:var(--screen-x,-100px); top:var(--screen-y,-100px);
  width:var(--screen-width,44px); height:var(--screen-height,44px); max-width:none;
  scale:none; z-index:var(--screen-layer,1) !important;
  visibility:var(--screen-visibility,visible);
}
#paws-office .room-stage {
  position:absolute; top:0; left:0; width:100%; height:100%; transform-origin:0 0;
  will-change:transform;
}
#paws-office .room-targets {
  position:absolute; inset:0; pointer-events:none;
}
#paws-office .room-target {
  position:absolute; min-height:0; padding:0; border:0;
  overflow:hidden; background:transparent; border-radius:2px; pointer-events:auto; cursor:pointer;
}
#paws-office .has-3d-room .room-target { pointer-events:none }
#paws-office .room-target > :is(img,canvas) {
  position:absolute; display:block; width:100%; height:100%; object-fit:contain; pointer-events:none;
}
#paws-office .room-target:not([data-room-target="awards"]) > img { object-fit:cover }
#paws-office .has-3d-room .room-target > :is(img,canvas) { display:none }
#paws-office .room-target:focus-visible {
  outline-color:#fffaf6; outline-offset:-3px; box-shadow:inset 0 0 0 4px #271a22;
}
#paws-office .scene {
  position:absolute; inset:0; display:block; width:100%; height:100%;
  user-select:none; pointer-events:none;
}
#paws-office .foreground-table {
  position:absolute; translate:-50% -78%; display:block; height:auto;
  clip-path:inset(23.5% 19% 21% 19%);
  user-select:none; pointer-events:none;
}
#paws-office .avatar {
  position:absolute; left:var(--world-x,48%); top:var(--world-y,79%);
  translate:-50% -100%;
  scale:var(--depth-scale,1);
  transform-origin:center bottom;
  display:grid; justify-items:center; align-content:start; gap:2px;
  text-align:center; line-height:1.2; width:max-content; max-width:135px;
  overflow-wrap:anywhere; pointer-events:none;
}
#paws-office .avatar::before {
  content:""; position:absolute; left:50%; bottom:0; width:66%; height:10%;
  translate:-50% 25%; border-radius:50%; background:#40261d38; filter:blur(2px);
}
#paws-office button.avatar {
  background:transparent; border-color:transparent; padding:4px;
  pointer-events:auto; cursor:pointer;
}
#paws-office .avatar.human { border:1px solid transparent; padding:4px }
#paws-office .avatar strong, #paws-office .avatar span:not(.paw-portrait) {
  position:absolute; width:max-content; max-width:145px; top:100%; z-index:1;
  padding:3px 6px; line-height:1.2; color:#fffaf6; text-shadow:var(--scene-text-shadow);
}
#paws-office .avatar strong { font-size:13px }
#paws-office .avatar span:not(.paw-portrait) { top:calc(100% + 21px); font-size:11px }
#paws-office .is-surface-eating strong { top:auto; bottom:calc(100% + 17px) }
#paws-office .is-surface-eating span:not(.paw-portrait) { top:auto; bottom:100% }
#paws-office .human-portrait, #paws-office .pet-portrait {
  position:relative; display:block; object-fit:contain; scale:var(--facing,1) 1;
  filter:drop-shadow(0 3px 2px #3b231b40);
}
#paws-office .human-portrait { width:64px; height:76px }
#paws-office .remote-avatars .human-portrait { filter:hue-rotate(32deg) drop-shadow(0 3px 2px #3b231b40) }
#paws-office .pet-portrait { width:88px; height:54px }
#paws-office .pet-portrait.faces-left { scale:calc(-1 * var(--facing,1)) 1 }
#paws-office .room:not(.has-3d-room) :is(.is-resting,.is-sleeping) .pet-portrait {
  transform-origin:center bottom;
}
#paws-office .room:not(.has-3d-room) .is-resting .pet-portrait { transform:scaleY(.85) }
#paws-office .room:not(.has-3d-room) .is-sleeping .pet-portrait { transform:scaleY(.72) }
@media (prefers-reduced-motion:no-preference) {
  #paws-office .room:not(.has-3d-room) .is-sleeping .pet-portrait {
    animation:pet-sleep-breath 4s ease-in-out infinite alternate;
  }
  @keyframes pet-sleep-breath {
    from { transform:scaleY(.72) }
    to { transform:scaleY(.75) }
  }
}
#paws-office .pet { --treat-offset:16px; --treat-top:39% }
#paws-office .pet.has-custom-portrait { --treat-offset:28px; --treat-top:35% }
#paws-office .pet-treat {
  position:absolute; z-index:1; left:50%; top:var(--treat-top); width:37px; height:17px;
  translate:calc(var(--facing,1) * var(--treat-offset)) -50%;
  scale:var(--facing,1) 1; transform:scale(var(--treat-size,1)); transform-origin:left center;
  filter:drop-shadow(0 1px 1px #352422a6); pointer-events:none;
}
#paws-office .pet-treat[data-treat="bone"] {
  background:radial-gradient(circle at 14% 27%, #fff0ce 4px, transparent 4.6px),
    radial-gradient(circle at 14% 73%, #ffdfac 4px, transparent 4.6px),
    radial-gradient(circle at 86% 27%, #fff0ce 4px, transparent 4.6px),
    radial-gradient(circle at 86% 73%, #ffdfac 4px, transparent 4.6px),
    linear-gradient(#fff0ce, #f4cf94) center / 72% 43% no-repeat;
}
#paws-office .pet-treat[data-treat="fish"] {
  clip-path:polygon(0 50%, 13% 19%, 35% 7%, 61% 17%, 77% 39%, 98% 15%, 91% 50%, 98% 85%, 77% 61%, 61% 83%, 35% 93%, 13% 81%);
  background:radial-gradient(circle at 17% 39%, #102950 1.5px, transparent 2px),
    linear-gradient(165deg, #96e6ff 8%, #398fe4 44%, #1655a3 65%, #58bbff 90%);
}
@media (prefers-reduced-motion:no-preference) {
  #paws-office .is-eating .pet-portrait {
    transform:translateY(var(--chew-dip,0px)) rotate(var(--chew-angle,0deg));
  }
  #paws-office .pet-treat { transition:transform 140ms ease-out }
}
#paws-office .room:not(.has-3d-room) .is-floor-eating .pet-portrait {
  transform:scaleY(calc(1 - .43 * var(--bone-crouch,0)));
  transform-origin:center bottom;
}
@media (prefers-reduced-motion:no-preference) {
  #paws-office .room:not(.has-3d-room) .is-floor-eating .pet-portrait {
    transform:rotate(calc(var(--facing,1) * var(--chew-angle,0deg) * .40))
      scaleY(calc(1 - .43 * var(--bone-crouch,0)));
  }
}
#paws-office .room:not(.has-3d-room) .is-floor-eating .pet-treat {
  top:100%; translate:calc(var(--facing,1) * 26px) -75%;
}
#paws-office .avatar.is-walking :is(.human-portrait,.pet-portrait) {
  animation:character-step 250ms ease-in-out infinite alternate;
}
@keyframes character-step {
  from { transform:translateY(0) rotate(-2deg) }
  to { transform:translateY(-4px) rotate(2deg) }
}
#paws-office .paw-portrait {
  width:28px; height:22px; margin:27px 20px 5px; border-radius:50% 50% 44% 44%;
  background:#895d53; position:relative;
}
#paws-office .paw-portrait::before {
  content:""; position:absolute; width:7px; height:9px; border-radius:50%;
  background:#895d53; left:-2px; top:-6px; box-shadow:8px -6px #895d53,17px -6px #895d53,25px 0 #895d53;
}
@media (prefers-reduced-motion:reduce) {
  #paws-office .avatar.is-walking :is(.human-portrait,.pet-portrait) { animation:none }
}
.office-content { max-width:1040px; margin:1.5rem auto 3rem }
.office-preview { margin-bottom:.7rem; color:#5d5263; font-size:.93rem }
@media (max-width:480px) {
  #paws-office .welcome { grid-template-columns:1fr }
  #paws-office .office-preview-image { order:-1; aspect-ratio:2/1 }
  #paws-office .human-portrait { width:51px; height:61px }
  #paws-office .pet-portrait:not(.paw-portrait) { width:68px; height:44px }
  #paws-office .pet { --treat-offset:13px }
  #paws-office .pet.has-custom-portrait { --treat-offset:23px }
  #paws-office .pet-treat { width:31px }
  #paws-office .avatar { max-width:104px }
  #paws-office .avatar strong, #paws-office .avatar span:not(.paw-portrait) { max-width:112px }
  #paws-office .avatar strong { font-size:12px }
  #paws-office .avatar span:not(.paw-portrait) { font-size:10px }
  .office-content { margin-top:1rem }
  .office-page .masthead .button { padding:.5rem .65rem }
}

#paws-office .pet-close-layout [data-detail] {
  inset: auto auto max(18px, env(safe-area-inset-bottom)) 50% !important;
  transform: translateX(-50%);
}
