.jy-top-tool-v242 {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #d9ddda;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  color: #25282a;
  font: 800 10px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto !important;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 100ms ease;
}

.jy-top-tool-v242:hover:not(:disabled) {
  border-color: #9eb585;
  background: #f1f6eb;
}

.jy-top-tool-v242:active:not(:disabled) {
  transform: translateY(1px);
}

.jy-top-tool-v242:focus-visible {
  outline: 2px solid #6f9145;
  outline-offset: 2px;
}

.jy-top-tool-v242.is-active {
  border-color: #62853a;
  background: #6f9145;
  color: #fff;
}

.jy-top-tool-v242[data-top-tool-v242="restore"].has-changes {
  border-color: #b5c99c;
  background: #eaf2df;
  color: #3d5828;
}

.jy-top-tool-v242:disabled {
  border-color: #e4e7e4;
  background: rgba(247, 248, 247, 0.9);
  color: #a1a7a3;
  cursor: default;
}

.jy-demo-export-status-v329 {
  position: fixed;
  z-index: 360;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(340px, calc(100vw - 32px));
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(27, 33, 31, 0.94);
  box-shadow: 0 14px 36px rgba(20, 30, 26, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.jy-demo-export-status-v329 strong,
.jy-demo-export-status-v329 span {
  display: block;
}

.jy-demo-export-status-v329 strong {
  font-size: 12px;
  line-height: 1.25;
}

.jy-demo-export-status-v329 span {
  margin-top: 4px;
  color: #d7e2dc;
  font-size: 10px;
}

.jy-demo-export-status-v329 i {
  display: block;
  overflow: hidden;
  height: 3px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.jy-demo-export-status-v329 i::after {
  display: block;
  width: var(--demo-progress, 0%);
  height: 100%;
  background: #a8cc74;
  content: "";
  transition: width 100ms linear;
}

/* Original entry buttons stay functional but no longer occupy the bottom of the canvas. */
.jy-site-sketch-toggle-v238,
.jy-site-condition-toggle-v227,
.jy-model-toggle-v233,
.jy-technical-toggle,
.post-toolbar-v216 .is-restore {
  display: none !important;
}

.post-toolbar-v216:not(.has-selection) {
  display: none !important;
}

body.jy-technical-mode .jy-top-tool-v242[data-top-tool-v242="sketch"],
body.jy-technical-mode .jy-top-tool-v242[data-top-tool-v242="site"],
body.jy-technical-mode .jy-top-tool-v242[data-top-tool-v242="models"],
body.jy-technical-mode .jy-top-tool-v242[data-top-tool-v242="units"],
body.jy-technical-mode .jy-top-tool-v242[data-top-tool-v242="dimensions"] {
  visibility: hidden;
}

@media (max-width: 980px) {
  .jy-top-tool-v242 {
    min-width: 34px;
    height: 26px;
    min-height: 26px;
    padding: 0 6px;
    font-size: 8.5px;
  }
}

@media (max-width: 480px) {
  html body .viewer-topbar .topbar-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 5px !important;
  }

  html body .viewer-topbar .topbar-main {
    width: 100% !important;
    max-width: none !important;
  }

  html body .viewer-topbar .topbar-actions-v82 {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: end !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  html body .viewer-topbar .topbar-actions-v82::-webkit-scrollbar {
    display: none;
  }

  .jy-top-tool-v242 {
    min-width: 30px;
    padding: 0 4px;
    font-size: 7.5px;
  }

  .jy-top-tool-v242[data-top-tool-v242="demo"] {
    min-width: 34px;
    color: #fff;
    border-color: #50702e;
    background: #62853a;
  }

  .jy-demo-export-status-v329 {
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 72px));
  }

  html body .topbar-actions-v82 #jy-scene-fab-v72,
  html body .topbar-actions-v82 [data-reset-config] {
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 4px !important;
    font-size: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jy-top-tool-v242 {
    transition: none;
  }
}
