/* 右侧悬浮快捷按钮：白色圆钮 + 青色图标（参考 next.tboj.cn） */
.zk-fab,
.zk-fab-solo {
  position: fixed;
  right: 20px;
  z-index: 1000;
}
.zk-fab {
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.zk-fab-solo { bottom: 96px; }
.zk-fab-items { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.zk-fab [hidden] { display: none !important; }
.zk-fab-items:not([hidden]) { animation: zkFabIn .18s ease-out; }
@keyframes zkFabIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.zk-fab-btn,
.zk-fab-close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.zk-fab-name {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid #e6efee;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(23, 43, 58, .38), 0 2px 6px rgba(23, 43, 58, .05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.zk-fab-btn:hover .zk-fab-name,
.zk-fab-btn:focus-visible .zk-fab-name,
.zk-fab-close:hover .zk-fab-name,
.zk-fab-close:focus-visible .zk-fab-name {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
@media (hover: none) {
  .zk-fab-name { display: none; }
}
.zk-fab-btn {
  border: 1px solid #e2edec;
  background: #fff;
  color: #2b7a78;
  box-shadow: 0 10px 24px -10px rgba(23, 43, 58, .35), 0 2px 6px rgba(23, 43, 58, .06);
}
.zk-fab-btn:hover {
  transform: translateY(-2px);
  border-color: #b9d8d5;
  box-shadow: 0 14px 26px -12px rgba(23, 43, 58, .4), 0 4px 8px rgba(23, 43, 58, .08);
}
.zk-fab-btn:active { transform: translateY(0); }
.zk-fab-btn svg { width: 24px; height: 24px; }
.zk-fab-close {
  border: 1px solid #2b7a78;
  background: #2b7a78;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(23, 43, 58, .45);
}
.zk-fab-close:hover { background: #256b69; transform: translateY(-2px); }
.zk-fab-close svg { width: 20px; height: 20px; }
.zk-fab-time {
  display: none;
  margin: 0;
  font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.3px;
}
#layout-timer-button.is-running svg { display: none; }
#layout-timer-button.is-running .zk-fab-time { display: block; }
@media (max-width: 767px) {
  .zk-fab, .zk-fab-solo { right: 12px; }
  .zk-fab-solo { bottom: 78px; }
  .zk-fab-btn, .zk-fab-close { width: 50px; height: 50px; }
  .zk-fab-btn svg { width: 22px; height: 22px; }
  .zk-fab-items { gap: 10px; }
}