/* 本机快捷收纳 */

.note-desktop-app .tool-cat-footer {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

.note-desktop-app .tool-cat-footer .tool-cat-tab {
  width: auto !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  justify-content: center !important;
  text-align: center;
  font-size: 12px;
  padding-left: 6px;
  padding-right: 6px;
}

.tool-cat-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 4px 6px;
  padding: 0 4px;
  opacity: 0.75;
}

.tool-cat-sep::before,
.tool-cat-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 140, 170, 0.45), transparent);
}

.tool-cat-sep-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #8a97a8;
  white-space: nowrap;
}

.tool-cat-tab-launcher .tool-cat-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  margin-right: 2px;
  font-size: 8px;
  line-height: 1;
  color: #5dcea8;
  flex-shrink: 0;
}

.tool-cat-tab-launcher.active .tool-cat-mark {
  color: #8dffb0;
}

.tool-cat-add-launcher {
  border-style: dashed;
  border-color: rgba(93, 206, 168, 0.35) !important;
  color: #8dccb8 !important;
  background: rgba(61, 139, 110, 0.08) !important;
}

.launcher-zone {
  --launcher-bg: rgba(10, 13, 18, 0.55);
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  position: relative;
  border-radius: 12px;
  background: var(--launcher-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 6px 8px;
}

.launcher-zone.is-dragover:not(.is-reordering)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px dashed rgba(93, 206, 168, 0.4);
  border-radius: 12px;
  background: rgba(61, 139, 110, 0.05);
  z-index: 2;
}

.launcher-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.launcher-toolbar-title {
  font-weight: 600;
  font-size: 15px;
  color: #d8e2f0;
}

.launcher-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.launcher-bg-custom {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: visible;
  border: 1px solid rgba(90, 105, 130, 0.42);
  cursor: pointer;
  background: var(--chip, rgba(42, 56, 74, 0.48));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.launcher-bg-custom:hover {
  border-color: rgba(120, 138, 165, 0.55);
}

.launcher-bg-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 120, 160, 0.28),
      rgba(120, 190, 255, 0.22),
      rgba(140, 255, 190, 0.2),
      rgba(255, 210, 120, 0.24),
      rgba(255, 120, 160, 0.28)
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1px));
  opacity: 0.5;
  animation: launcher-neon-spin 10s linear infinite;
}

@keyframes launcher-neon-spin {
  to {
    transform: rotate(360deg);
  }
}

.launcher-bg-custom input[type="color"] {
  position: absolute;
  inset: -2px;
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  border-radius: 50%;
}

.launcher-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  padding: 0 0 16px;
  align-content: start;
  flex: 1;
  min-height: 120px;
}

.launcher-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  padding: 8px 4px 6px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
  min-height: 82px;
  user-select: none;
}

.launcher-tile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 140, 170, 0.28);
}

.launcher-tile.is-manage {
  cursor: default;
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(70, 90, 120, 0.22);
}

.launcher-tile.is-manage:hover {
  background: rgba(0, 0, 0, 0.26);
}

.launcher-tile.is-broken {
  opacity: 0.65;
}

.launcher-tile.is-dragging {
  opacity: 0.88;
  transform: scale(1.05);
  z-index: 4;
  background: rgba(61, 139, 110, 0.18);
  border-color: rgba(93, 206, 168, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.launcher-tile.is-drop-target {
  outline: 2px dashed rgba(93, 206, 168, 0.75);
  transform: scale(1.03);
}

.launcher-tile-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  cursor: grab;
  color: #8a97a8;
  font-size: 12px;
  line-height: 1;
  padding: 2px 3px;
  z-index: 2;
}

.launcher-tile-handle:active {
  cursor: grabbing;
}

.launcher-tile-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.launcher-tile-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  image-rendering: -webkit-optimize-contrast;
}

.launcher-tile-icon-fallback {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #a8e6cf;
  background: rgba(61, 139, 110, 0.18);
  border-radius: 8px;
}

.launcher-tile-title {
  font-size: 11px;
  color: #d4deec;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.launcher-tile-sub {
  font-size: 10px;
  color: #e08070;
  text-align: center;
}

.launcher-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 2px;
}

.launcher-tile-actions .btn {
  font-size: 10px;
  padding: 2px 6px;
}

body:not(.note-desktop-app) .tool-cat-sep,
body:not(.note-desktop-app) .tool-cat-tab-launcher,
body:not(.note-desktop-app) #btnAddLauncherCategory {
  display: none !important;
}
