/* The spine, cover and house share the same orientation. */
.handbook-pod .manual-volume[data-studio-book] {
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.handbook-pod .manual-key:focus-visible .manual-volume[data-studio-book] {
  transform: perspective(420px) rotateY(0) rotateZ(0);
}
@media (hover: hover) {
  .handbook-pod .manual-key:hover .manual-volume[data-studio-book] {
    transform: perspective(420px) rotateY(0) rotateZ(0);
  }
}

/* The glass tile follows the construction sequence even outside distribution mode. */
:is(#board, #phone-tools) .orb-btn.is-active {
  border-radius: 7px;
  background:
    linear-gradient(141deg, #eaf1ec33, #b7c7c415 48%, #6e777719),
    linear-gradient(0deg, #161b2024, #edf1ec0b);
  box-shadow: inset 0 0 0 1px #dfe6df45, inset 0 1px 0 #f7f9ec50,
    inset 0 -1px 0 #11151595, 0 2px 5px #080c101f;
  backdrop-filter: blur(9px) saturate(.85);
  -webkit-backdrop-filter: blur(9px) saturate(.85);
}
:is(#board, #phone-tools) .orb-btn.is-active b {color: #fff8e7;}
@media (forced-colors: active) {
  :is(#board, #phone-tools) .orb-btn.is-active {outline: 1px solid Highlight;}
}

@property --pomi-choice-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes pomi-choice-orbit {
  to { --pomi-choice-angle: 360deg; }
}

[data-pomi-choice],
[data-pomi-choice="tools"] .orb-art {
  position: relative;
}
[data-pomi-selecting] :is(#tools-heading, #phone-tools-title, #documents-heading, #apps-heading) {
  color: #f3e1bd;
}
[data-pomi-choice] {
  --rim: #bda572af;
  --rim-weight: 2px;
}
[data-pomi-choice][aria-pressed="true"] {
  --rim: #ead1a0;
  --rim-weight: 2px;
}
[data-pomi-choice="tools"] .orb-art::before,
:is([data-pomi-choice="documents"], [data-pomi-choice="apps"])::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: var(--rim-weight);
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--pomi-choice-angle), var(--rim) 0deg 251deg, #d0a55f 291deg, #ffdb8e 324deg, #fffdef 343deg 351deg, var(--rim) 360deg);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: pomi-choice-orbit 3.6s linear infinite;
}
[data-pomi-choice="tools"] .orb-art::before {
  inset: 3%;
  border-radius: 50%;
}
[data-pomi-choice="documents"]::before {border-radius: 5px;}
/* A fixed check stays legible alongside the moving rim and in monochrome. */
[data-pomi-choice][aria-pressed="true"]::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  z-index: 3;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 13px;
  border: solid #ffe4ae;
  border-width: 0 2px 2px 0;
  filter: drop-shadow(0 1px 1px #282018);
  transform: rotate(45deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .handbook-pod .manual-volume[data-studio-book] {transition: none;}
  [data-pomi-choice="tools"] .orb-art::before,
  :is([data-pomi-choice="documents"], [data-pomi-choice="apps"])::before {
    animation: none;
    background: var(--rim);
  }
}
@media (forced-colors: active) {
  [data-pomi-choice] {outline: 1px dashed ButtonText;}
  [data-pomi-choice][aria-pressed="true"] {outline: 3px solid Highlight;}
}
.engine-pod {position: relative;}
.engine-pod .pomi-choice-exit:not([hidden]) {
  position: absolute;
  inset-block-start: 1px;
  inset-inline-end: 1px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}
.pomi-choice-exit::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #aa9372;
  border-radius: 50%;
  background: #222325ed;
}
.pomi-choice-exit::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid #f4d9a9;
  border-width: 0 1.6px 1.6px 0;
  transform: translateY(-1px) rotate(45deg);
}
@media (pointer: coarse) {
  .engine-pod .pomi-choice-exit:not([hidden]) {width:44px;height:44px;}
  .pomi-choice-exit::before {inset:8px;}
}
