/* 697 第二批 · 插件原目标页工作区（workspace.html）顶栏与首屏层级优化
 * 保留原路由、全部 ID 与 #134；支持键盘焦点与 prefers-reduced-motion。
 */

.topbar .top-actions {
  gap: 0.4rem !important;
  flex-wrap: wrap;
}
.topbar .top-actions .ghost-btn {
  min-height: 36px;
  padding: 0.34rem 0.68rem !important;
  font-size: 0.82rem !important;
  border-radius: 9px !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.topbar #cloudSaveBtn,
.topbar #openEntryBtn {
  background: linear-gradient(135deg, #5b42f3 0%, #2563eb 65%, #0891b2 100%) !important;
  color: #fff !important;
  border: none !important;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  font-weight: 700 !important;
}
.topbar #cloudSaveBtn:hover,
.topbar #openEntryBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(91, 66, 243, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .topbar .top-actions .ghost-btn { transition: none !important; transform: none !important; }
}

.gd-object-switch { display: none; }
@media (max-width: 700px) {
  .gd-object-switch { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
  .gd-object-choice {
    min-height: 40px;
    padding: 5px 12px;
    border: 1px solid #9db6cb;
    border-radius: 5px;
    color: #193958;
    background: #f7fbff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
  }
  .gd-object-choice[aria-pressed="true"] {
    color: #fff;
    border-color: #3b4796;
    background: linear-gradient(110deg, #403590, #07696b);
  }
  .gd-object-switch + .gd-compare { overflow: visible; }
  .gd-object-switch + .gd-compare > .gd-entity-col { min-width: 0; }
  .gd-object-switch + .gd-compare > [data-narrow-selected="false"] { display: none; }
}
