/* Farm office menu: tiles, the illustrated office and the text list (farm-menu.js). */

.office-menu {
  --om-wall-top: #e9dcc0;
  --om-wall: #dccaa3;
  --om-plank: #c7b287;
  --om-trim: #8a6038;
  --om-floor-top: #a5774a;
  --om-floor: #7d5532;
  --om-rug: #2f5b3a;
  --om-tone-farm: #2f7a3a;
  --om-tone-money: #a8731a;
  --om-tone-op: #1c5a93;
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: color-mix(in srgb, #0b1510 62%, transparent);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.office-menu[hidden] {
  display: none;
}
.office-menu.in {
  opacity: 1;
}
:root[data-theme='dark'] .office-menu {
  --om-wall-top: #4a3e2c;
  --om-wall: #3b3123;
  --om-plank: #574832;
  --om-floor-top: #5a3f26;
  --om-floor: #3e2b19;
  --om-rug: #1f3d28;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .office-menu {
    --om-wall-top: #4a3e2c;
    --om-wall: #3b3123;
    --om-plank: #574832;
    --om-floor-top: #5a3f26;
    --om-floor: #3e2b19;
    --om-rug: #1f3d28;
  }
}
body.office-menu-open {
  overflow: hidden;
}

.om-panel {
  width: min(1180px, 100%);
  max-height: calc(100svh - 36px);
  display: flex;
  flex-direction: column;
  background: var(--fh-bg, #eef0e6);
  color: var(--fh-ink, #14291e);
  border: 1px solid var(--fh-line-strong, #14291e38);
  border-radius: 18px;
  box-shadow: 0 24px 70px #0007;
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.office-menu.in .om-panel {
  transform: none;
}
.om-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--fh-line, #14291e1a);
}
.om-title h2 {
  margin: 2px 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
}
.om-title .eyebrow {
  color: var(--fh-accent-ink);
}
.om-hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--fh-muted);
}
.om-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.om-seg {
  display: flex;
  border: 1px solid var(--fh-line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--fh-surface);
}
.om-seg button {
  border: 0;
  background: none;
  color: var(--fh-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.om-seg button.active {
  background: var(--forest, #14291e);
  color: var(--paper, #f6f3ea);
}
.om-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--fh-line-strong);
  background: var(--fh-surface);
  color: var(--fh-ink);
  font-size: 16px;
  cursor: pointer;
}
.om-body {
  overflow-y: auto;
  padding: 14px 20px 8px;
  overscroll-behavior: contain;
}
.om-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--fh-line);
  font-size: 13px;
  color: var(--fh-muted);
}
.om-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--fh-line-strong);
  background: var(--fh-surface);
  color: var(--fh-ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.om-chip .om-icon {
  width: 16px;
  height: 16px;
}
.om-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.om-keys {
  margin-left: auto;
}
.office-menu :focus-visible {
  outline: 3px solid var(--fh-info, #1c5a93);
  outline-offset: 2px;
}

/* ---- tiles ---- */
.om-group h3 {
  margin: 6px 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fh-muted);
}
.om-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.om-tile {
  --tone: var(--om-tone-farm);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  color: var(--fh-ink);
  background: var(--fh-surface);
  border: 1px solid var(--fh-line);
  border-radius: 14px;
  box-shadow: var(--fh-shadow);
  cursor: pointer;
  animation: om-rise 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
  animation-delay: calc(var(--i, 0) * 28ms);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}
.om-c-money {
  --tone: var(--om-tone-money);
}
.om-c-op {
  --tone: var(--om-tone-op);
}
.om-tile:hover,
.om-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--tone);
  box-shadow:
    0 10px 24px #14291e22,
    0 0 0 1px var(--tone);
}
.om-tile:active {
  transform: translateY(0) scale(0.98);
}
.om-tile.current {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 9%, var(--fh-surface));
}
.om-tile-art {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 75%, #fff), var(--tone));
  box-shadow: inset 0 -3px 0 #0002;
}
.om-tile-art .om-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.25s ease;
}
.om-tile:hover .om-icon,
.om-tile:focus-visible .om-icon {
  animation: om-wiggle 0.6s ease;
}
.om-tile-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.om-tile-text b {
  font-size: 15px;
}
.om-tile-text small {
  font-size: 12.5px;
  color: var(--fh-muted);
  line-height: 1.3;
}
.om-tile kbd {
  position: absolute;
  top: 8px;
  right: 10px;
  font:
    11px/1 ui-monospace,
    monospace;
  color: var(--fh-faint);
  border: 1px solid var(--fh-line-strong);
  border-radius: 4px;
  padding: 2px 5px;
}
.om-badge {
  position: absolute;
  top: -6px;
  left: 50px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #d8342b;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  animation: om-pop 2.4s ease-in-out infinite;
}
.om-next {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fh-accent-ink);
  background: var(--fh-accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.om-tile.next::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid var(--lime, #b8d432);
  animation: om-halo 2.2s ease-in-out infinite;
  pointer-events: none;
}

/* ---- the office photo ---- */
.om-photo {
  position: relative;
  width: 100%;
  max-width: calc((100svh - 230px) * 1376 / 768);
  margin: 0 auto;
  aspect-ratio: 1376 / 768;
  border-radius: 12px;
  overflow: hidden;
  background: #3b3123;
  box-shadow: 0 10px 30px #0004;
}
.om-photo picture,
.om-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.om-photo img {
  animation: om-kenburns 40s ease-in-out infinite alternate;
  transform-origin: 45% 55%;
}
/* the farm clock and today's weather tint the room */
.om-photo-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.om-light-dusk .om-photo-tint {
  background: linear-gradient(100deg, #f3a66b88, #ffd9a640 40%, #8a5a3240);
}
.om-light-night .om-photo-tint {
  background: radial-gradient(ellipse at 55% 45%, #ffe2a8cc, #23335e 75%);
}
.om-light-grey .om-photo-tint {
  background: linear-gradient(100deg, #8e9aa6aa, #c9d0d655 35%, #ffffff00);
}
.om-photo-wx {
  position: absolute;
  left: 4%;
  top: 7%;
  width: 19%;
  height: 66%;
  pointer-events: none;
  opacity: 0.6;
  background-size: 14px 26px;
  animation: om-fall 0.9s linear infinite;
}
.om-photo-rain {
  background-image: linear-gradient(170deg, transparent 45%, #ffffffaa 50%, transparent 55%);
}
.om-photo-snow {
  background-image: radial-gradient(circle, #fff 1.5px, transparent 2px);
  animation-duration: 3s;
}
.om-photo-clock {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #14291ecc;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.om-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
  z-index: 1;
}
.om-spot:hover,
.om-spot:focus-visible {
  z-index: 3;
  outline: none;
}
.om-spot > i {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime, #b8d432);
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 #b8d43288;
  animation: om-halo-dot 2.6s ease-out infinite;
}
.om-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: #14291ed9;
  border: 1px solid #b8d43299;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(3px);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.om-tag b {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  border-radius: 9px;
  background: #d8342b;
  text-align: center;
  font-size: 11px;
}
.om-spot.om-left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 7px), -50%);
}
.om-spot:hover .om-tag,
.om-spot:focus-visible .om-tag {
  transform: scale(1.08);
  background: var(--forest, #14291e);
  border-color: #fff;
}
.om-spot:focus-visible .om-tag {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.om-spot.next .om-tag {
  background: color-mix(in srgb, var(--lime, #b8d432) 40%, var(--forest, #14291e));
}
.om-spot.next > i {
  background: #fff3b0;
}
.om-spot.current .om-tag {
  border-color: #fff;
}
@media (max-width: 900px) {
  .om-tag {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  .om-spot > i {
    width: 10px;
    height: 10px;
  }
}
@keyframes om-kenburns {
  to {
    transform: scale(1.05) translate(-0.6%, 0.4%);
  }
}
@keyframes om-halo-dot {
  70% {
    box-shadow: 0 0 0 10px #b8d43200;
  }
  100% {
    box-shadow: 0 0 0 0 #b8d43200;
  }
}

/* ---- text list ---- */
.om-list .om-body {
  padding-top: 6px;
}
.om-list-group h3 {
  margin: 12px 0 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fh-muted);
}
.om-list-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--fh-line);
  border-radius: 10px;
  background: var(--fh-surface);
  overflow: hidden;
}
.om-list-group li + li {
  border-top: 1px solid var(--fh-line);
}
.om-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: 'label badge go' 'status badge go';
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 9px 14px;
  border: 0;
  background: none;
  color: var(--fh-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.om-row:hover {
  background: var(--fh-surface-2);
}
.om-row.current {
  background: var(--fh-accent-soft);
  font-weight: 700;
}
.om-row-label {
  grid-area: label;
  font-size: 15px;
  font-weight: 700;
}
.om-row small {
  grid-area: status;
  color: var(--fh-muted);
  font-size: 13px;
}
.om-row .om-badge {
  position: static;
  grid-area: badge;
  animation: none;
}
.om-row-go {
  grid-area: go;
  font-size: 22px;
  color: var(--fh-faint);
}
.om-row .om-next {
  position: static;
  margin-left: 6px;
}

/* ---- the Menu button ---- */
.fh-menu-btn,
.fh-side-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.fh-menu-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid var(--fh-line-strong);
  background: var(--fh-surface);
  color: var(--fh-ink);
  white-space: nowrap;
}
.fh-menu-btn:hover {
  border-color: var(--fh-accent-ink);
}
/* The classic side menu stays as it was on wide screens; the extra Menu button there is for phones,
   where the side menu turns into a scrolling strip. The top-bar Menu button is always available. */
@media (min-width: 901px) {
  .fh-side-menu {
    display: none;
  }
}
.fh-side-menu {
  justify-content: flex-start;
  background: var(--lime, #b8d432);
  color: var(--forest, #14291e);
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.fh-menu-glyph {
  display: grid;
  grid-template-columns: 6px 6px;
  gap: 2px;
}
.fh-menu-glyph i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.fh-menu-btn:hover .fh-menu-glyph i:nth-child(1),
.fh-side-menu:hover .fh-menu-glyph i:nth-child(1) {
  transform: translate(-1px, -1px);
}
.fh-menu-btn:hover .fh-menu-glyph i:nth-child(2),
.fh-side-menu:hover .fh-menu-glyph i:nth-child(2) {
  transform: translate(1px, -1px);
}
.fh-menu-btn:hover .fh-menu-glyph i:nth-child(3),
.fh-side-menu:hover .fh-menu-glyph i:nth-child(3) {
  transform: translate(-1px, 1px);
}
.fh-menu-btn:hover .fh-menu-glyph i:nth-child(4),
.fh-side-menu:hover .fh-menu-glyph i:nth-child(4) {
  transform: translate(1px, 1px);
}

@media (max-width: 900px) {
  .fh-top .fh-menu-btn {
    display: none;
  }
}

/* the page panel slides in after a menu pick */
.fh-enter #office-panel {
  animation: om-page 0.32s ease both;
}

@media (max-width: 760px) {
  .office-menu {
    padding: 0;
    place-items: stretch;
  }
  .om-panel {
    max-height: 100svh;
    height: 100svh;
    border-radius: 0;
  }
  .om-head {
    padding: 12px 14px 10px;
  }
  .om-body {
    padding: 8px 14px;
  }
  .om-foot {
    padding: 8px 14px 12px;
  }
  .om-seg button {
    padding: 7px 9px;
    font-size: 12px;
  }
  .om-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .om-tile {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 10px;
  }
  .om-tile .om-next,
  .om-tile kbd,
  .om-keys,
  .fh-menu-btn span:last-child {
    display: none;
  }
  .om-badge {
    left: auto;
    right: -4px;
  }
}

/* calm motion and low-power: no ambient animation */
:root[data-motion='calm'] .office-menu *,
:root[data-motion='calm'] .office-menu,
.office-menu[data-style='list'] * {
  animation: none !important;
  transition: none !important;
}
:root[data-motion='calm'] .fh-enter #office-panel {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .office-menu *,
  .office-menu,
  .fh-enter #office-panel {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes om-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}
@keyframes om-wiggle {
  30% {
    transform: rotate(-10deg) scale(1.12);
  }
  60% {
    transform: rotate(7deg) scale(1.08);
  }
}
@keyframes om-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}
@keyframes om-halo {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@keyframes om-drift {
  to {
    transform: translateX(90px);
  }
}
@keyframes om-fall {
  from {
    transform: translateY(-30px);
  }
  to {
    transform: translateY(30px);
  }
}
@keyframes om-twinkle {
  50% {
    opacity: 0.4;
  }
}
@keyframes om-sway {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}
@keyframes om-prop {
  to {
    transform: scaleY(-1);
  }
}
@keyframes om-steam {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  40% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@keyframes om-scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(64px);
  }
}
@keyframes om-draw {
  0% {
    stroke-dashoffset: 220;
  }
  60%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes om-drip {
  0%,
  40% {
    opacity: 0;
    transform: translateY(-6px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(26px);
  }
}
@keyframes om-sprout {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}
@keyframes om-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes om-dial {
  50% {
    transform: rotate(120deg);
  }
}
@keyframes om-hop {
  40% {
    transform: translateY(-8px);
  }
}
@keyframes om-glow {
  0%,
  100% {
    filter: none;
  }
  50% {
    filter: brightness(1.15) drop-shadow(0 0 8px #e9ff9c);
  }
}
@keyframes om-page {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---- the walk-through 3D office (office3d.js) ---- */
.om-panel.om-walk {
  width: min(1500px, 100%);
  height: calc(100svh - 36px);
}
.om-walk .om-body {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.om-walk-stage,
.o3 {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #1d1812;
  overflow: hidden;
  outline: none;
}
.o3-stage,
.o3-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.o3-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f6efe0;
  font-weight: 700;
  background: #1d1812cc;
  pointer-events: none;
}
.o3-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.o3-pin {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin: -9px 0 0 -9px;
  will-change: transform;
}
.o3-pin i {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 4px, #f0b52acc 5px 7px, #f0b52a33 8px);
  box-shadow: 0 0 0 1px #0006;
  animation: o3-pulse 2.4s ease-in-out infinite;
}
.o3-pin span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #14291ee6;
  box-shadow: 0 4px 14px #0006;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.o3-pin b {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d8432f;
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.o3-pin.hot span,
.o3-pin:focus-visible span,
.o3-pin:hover span,
.o3-pin.next span {
  opacity: 1;
  transform: none;
}
.o3-pin.next i {
  background: radial-gradient(circle, #fff 0 4px, #7cf09add 5px 7px, #7cf09a44 8px);
}
.o3-pin.far:not(.hot):not(:focus-visible) i {
  transform: scale(0.75);
}
@media (pointer: coarse) {
  .o3-pin span {
    opacity: 0.92;
    transform: none;
    font-size: 12px;
    padding: 3px 7px;
  }
  .o3-pin.far:not(.hot) span {
    opacity: 0;
  }
}
.o3-chip,
.o3-help {
  position: absolute;
  margin: 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: #14291ed9;
  color: #f6efe0;
  font-size: 12.5px;
  font-weight: 700;
  pointer-events: none;
}
.o3-chip {
  top: 12px;
  right: 12px;
}
.o3-help {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 230px);
  font-weight: 600;
}
.o3-card {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  background: var(--fh-surface, #fff);
  color: var(--fh-ink, #14291e);
  box-shadow: 0 14px 40px #0008;
  animation: o3-card 0.22s ease both;
}
.o3-card[hidden] {
  display: none;
}
.o3-card > div {
  flex: 1;
  min-width: 0;
}
.o3-card b {
  font-size: 16px;
}
.o3-card small,
.o3-card em {
  display: block;
  margin-top: 2px;
  color: var(--fh-muted, #55645a);
  font-size: 13px;
}
.o3-card em {
  color: var(--fh-accent-ink, #2f7a3a);
  font-style: normal;
  font-weight: 700;
}
.o3-badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  background: #d8432f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.o3-open {
  flex: none;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--forest, #14291e);
  color: var(--paper, #f6f3ea);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.o3-x {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--fh-line-strong, #14291e38);
  background: none;
  color: inherit;
  cursor: pointer;
}
/* game-style HUD: crosshair, "E Open" prompt, tool buttons, toast, thumb stick, controls card */
.o3-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  background:
    radial-gradient(circle, #fff 0 2px, #0008 2.5px 3.5px, transparent 4px),
    linear-gradient(#fffc, #fffc) 50% 0 / 2px 6px no-repeat,
    linear-gradient(#fffc, #fffc) 50% 100% / 2px 6px no-repeat,
    linear-gradient(#fffc, #fffc) 0 50% / 6px 2px no-repeat,
    linear-gradient(#fffc, #fffc) 100% 50% / 6px 2px no-repeat;
  filter: drop-shadow(0 0 2px #000a);
}
.o3.aiming .o3-cross {
  opacity: 1;
}
.o3.aiming .o3-canvas {
  cursor: crosshair;
}
.o3[data-mode='lock'] .o3-canvas {
  cursor: none;
}
.o3-prompt {
  position: absolute;
  left: 50%;
  top: calc(50% + 26px);
  transform: translateX(-50%);
  max-width: min(440px, calc(100% - 24px));
  padding: 8px 14px;
  border-radius: 12px;
  background: #0d1a13e6;
  color: #f6efe0;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 6px 22px #0007;
}
.o3-prompt[hidden] {
  display: none;
}
.o3-prompt small {
  display: block;
  margin-top: 2px;
  color: #c9d6cc;
  font-size: 12px;
}
.o3 kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid #ffffff55;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #ffffff1a;
  font:
    700 11.5px/1.5 ui-monospace,
    Menlo,
    monospace;
  text-align: center;
}
.o3-tools {
  position: absolute;
  top: 48px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.o3-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: #14291ed9;
  color: #f6efe0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.o3-tool:hover,
.o3-tool:focus-visible,
.o3-tool[aria-expanded='true'] {
  background: #1f4a33;
}
.o3-toast {
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translate(-50%, -8px);
  padding: 8px 14px;
  border-radius: 999px;
  background: #0d1a13ee;
  color: #f6efe0;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.o3-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.o3-stick {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: none;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff10 0 40%, #ffffff22 41% 42%, #14291e8c 43%);
  border: 2px solid #ffffff40;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.o3-stick i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #d9e4dc 55%, #a9b8ae);
  box-shadow: 0 4px 12px #0008;
  transition: transform 0.12s;
}
.o3-stick.on i {
  transition: none;
}
.o3-stick.run {
  border-color: #f0b52a;
}
.o3-set {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(440px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--fh-surface, #fff);
  color: var(--fh-ink, #14291e);
  box-shadow: 0 18px 50px #000a;
  animation: o3-card 0.2s ease both;
  z-index: 3;
}
.o3-set[hidden] {
  display: none;
}
.o3-set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px 18px;
  font-size: 16px;
}
.o3-set-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.o3-skins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.o3-skins legend {
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 13px;
}
.o3-skins button {
  position: relative;
  display: grid;
  grid-template-rows: 52px 22px auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--fh-line-strong, #14291e38);
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.o3-skins button i {
  background-size: cover;
  background-position: center;
}
.o3-skins button span {
  padding: 5px 4px;
}
.o3-skins button.on {
  border-color: var(--fh-accent-ink, #2f7a3a);
  box-shadow: 0 0 0 2px var(--fh-accent-ink, #2f7a3a) inset;
}
.o3-range {
  display: grid;
  grid-template-columns: 7.5em 1fr 3.2em;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}
.o3-range input {
  width: 100%;
  accent-color: var(--fh-accent-ink, #2f7a3a);
}
.o3-range output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.o3-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.o3-keys {
  display: grid;
  gap: 10px;
}
.o3-keys h4 {
  margin: 4px 0;
  font-size: 13px;
}
.o3-keys dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 12.5px;
}
.o3-keys dt {
  white-space: nowrap;
  font-weight: 700;
}
.o3-keys dd {
  margin: 0;
  color: var(--fh-muted, #55645a);
}
.o3-set kbd {
  border-color: var(--fh-line-strong, #14291e38);
  background: var(--fh-surface-2, #14291e0d);
  color: inherit;
}
.o3-padline {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--fh-muted, #55645a);
}
@media (pointer: coarse) {
  .o3-stick {
    display: block;
  }
  .o3-lockbtn {
    display: none;
  }
  .o3-card {
    left: auto;
    right: 12px;
    transform: none;
    width: min(420px, calc(100% - 200px));
    min-width: 220px;
  }
}
@media (max-width: 560px) {
  .o3-help {
    display: none;
  }
  .o3-card {
    left: 12px;
    right: 12px;
    width: auto;
    min-width: 0;
    top: 52px;
    bottom: auto;
  }
}
.om-walk-fail {
  display: grid;
  place-content: center;
  gap: 12px;
  height: 100%;
  padding: 24px;
  color: #f6efe0;
  text-align: center;
}
@media (max-width: 760px) {
  .om-panel.om-walk {
    height: 100svh;
  }
}
@keyframes o3-pulse {
  50% {
    transform: scale(1.18);
  }
}
@keyframes o3-card {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

/* ---- the office view switch on the Overview ---- */
.fh-view-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--fh-line-strong);
  border-radius: 14px;
  background: var(--fh-surface);
  color: var(--fh-ink);
}
.fh-view-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fh-view-label small {
  opacity: 0.75;
}
.fh-view-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fh-view-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  border: 1px solid var(--fh-line-strong);
  background: transparent;
  color: var(--fh-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.fh-view-btn:hover:not(:disabled) {
  border-color: var(--fh-accent-ink);
}
.fh-view-btn.active {
  background: var(--fh-accent-soft);
  border-color: var(--fh-accent-ink);
  cursor: default;
  opacity: 1;
}
.fh-view-btn.primary {
  border-color: var(--fh-accent-ink);
  box-shadow: 0 0 0 2px var(--fh-accent-soft);
}
@media (max-width: 700px) {
  .fh-view-btns {
    width: 100%;
  }
  .fh-view-btn {
    flex: 1 1 calc(50% - 6px);
  }
}
