/* ===== 炫光标签墙 - 主样式 ===== */

/* --- 基础重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a1a;
  --bg-card: rgba(255,255,255,0.06);
  --border-card: rgba(255,255,255,0.08);
  --color-tag: #00e5ff;
  --color-danger: #ff6b6b;
  --color-gold: #fbbf24;
  --color-purple: #a855f7;
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --drawer-bg: rgba(10,10,26,0.95);
  --font-stack: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --transition: 200ms ease;
}

html, body {
  width: 100%; height: 100%;
  font-family: var(--font-stack);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

#app {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- 粒子画布 --- */
#particle-canvas, #solar-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- 导航栏 --- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  padding-right: 72px;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
}

.nav-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--color-tag), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-right {
  display: flex;
  gap: 8px;
}

.nav-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
}
.nav-btn:hover {
  color: var(--color-tag);
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 0 12px rgba(0,229,255,0.15);
}
/* 钉住按钮激活态 */
/* 搜索框 */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-search i {
  position: absolute;
  left: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  pointer-events: none;
}
.nav-search input {
  width: 180px; height: 36px;
  padding: 0 32px 0 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
  transition: all var(--transition);
}
.nav-search input:focus {
  width: 240px;
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 12px rgba(0,229,255,0.12);
}
.nav-search input::placeholder { color: var(--text-secondary); }
.nav-search-clear {
  position: absolute;
  right: 4px;
  width: 24px; height: 24px;
  display: none; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  border-radius: 50%;
  transition: all var(--transition);
}
.nav-search-clear:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-search-clear.visible { display: flex; }

/* 搜索过滤隐藏 */
.tag-hidden, .folder-hidden { display: none !important; }

.nav-btn.pin-active {
  color: var(--color-accent-gold);
  border-color: rgba(251,191,36,0.5);
  box-shadow: 0 0 16px rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.1);
}
.nav-btn.pin-active:hover {
  box-shadow: 0 0 20px rgba(251,191,36,0.4);
}

/* --- 主内容区 --- */
#main-content {
  flex: 1;
  padding: 24px;
  padding-right: 72px; /* 为右侧Sheet栏留空间 */
  position: relative;
  z-index: 1;
}

#groups-container {
  position: relative;
  min-height: calc(100vh - 140px);
}

.empty-hint {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.empty-hint i {
  display: block;
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* --- 分组卡片 --- */
.group {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: box-shadow var(--transition);
  z-index: 1;
}
.group:hover {
  box-shadow: 0 4px 24px rgba(0,229,255,0.06);
}
.group.is-moving, .group.is-resizing {
  z-index: 10;
  box-shadow: 0 8px 40px rgba(0,229,255,0.15);
  opacity: 0.92;
}
/* 钉住状态：分组不可移动/拉伸 */
.group.group-locked .group-header {
  cursor: default;
}
.group.group-locked .group-drag-handle {
  display: none;
}
.group.group-locked {
  box-shadow: 0 0 0 1px rgba(251,191,36,0.15), 0 2px 12px rgba(0,0,0,0.3);
}

/* --- 8方向拉伸手柄 --- */
.group-resize-handle {
  position: absolute;
  z-index: 25;
  background: transparent;
}
.group-resize-handle:hover,
.group-resize-handle.active {
  background: rgba(0,229,255,0.15);
}
/* 边手柄 */
.handle-n  { top: 0; left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.handle-s  { bottom: 0; left: 10px; right: 10px; height: 8px; cursor: ns-resize; }
.handle-e  { right: 0; top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
.handle-w  { left: 0; top: 10px; bottom: 10px; width: 8px; cursor: ew-resize; }
/* 角手柄 */
.handle-ne { top: 0; right: 0; width: 14px; height: 14px; cursor: nesw-resize; border-radius: 0 4px 0 0; }
.handle-nw { top: 0; left: 0; width: 14px; height: 14px; cursor: nwse-resize; border-radius: 4px 0 0 0; }
.handle-se { bottom: 0; right: 0; width: 14px; height: 14px; cursor: nwse-resize; border-radius: 0 0 4px 0; }
.handle-sw { bottom: 0; left: 0; width: 14px; height: 14px; cursor: nesw-resize; border-radius: 0 0 0 4px; }

.group-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
  border-bottom: 1px solid var(--border-card);
  background: rgba(255,255,255,0.02);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.group-header:active { cursor: grabbing; }

.group-drag-handle {
  color: var(--text-secondary);
  cursor: grab;
  opacity: 0.5;
  font-size: 12px;
  transition: opacity var(--transition);
}
.group-drag-handle:hover { opacity: 1; }

.group-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-count-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  background: rgba(0,229,255,0.1);
  border-radius: 8px;
  padding: 0 6px;
  margin-left: 6px;
  line-height: 16px;
  vertical-align: middle;
}

.group-actions {
  display: flex;
  gap: 4px;
}

.icon-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  font-size: 12px;
  transition: all var(--transition);
}
.icon-btn:hover {
  color: var(--color-tag);
  background: rgba(0,229,255,0.08);
}

.group-body {
  position: relative;
  z-index: 10;
  padding: 12px 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.group-body::-webkit-scrollbar {
  width: 4px;
}
.group-body::-webkit-scrollbar-track {
  background: transparent;
}
.group-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.group-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* --- 标签 --- */
.tags-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  font-size: 12px;
  width: 100%;
}
.tag:hover {
  transform: scale(1.03);
  border-color: var(--tag-color);
  box-shadow: 0 0 12px rgba(0,229,255,0.15), inset 0 0 8px rgba(0,229,255,0.05);
}
.tag:hover .tag-actions { opacity: 1; }
.tag:hover .tag-tooltip { opacity: 1; transform: translateY(0); pointer-events: auto; }

.tag-pinned {
  order: -1;
}

.tag-glow-bar {
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 2px;
}

.tag-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.tag-name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.tag-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition);
  margin-left: 4px;
}

.tag-act {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  font-size: 10px;
  transition: all var(--transition);
}
.tag-act:hover {
  color: var(--color-tag);
  background: rgba(0,229,255,0.1);
}
.tag-act.btn-del-tag:hover {
  color: var(--color-danger);
  background: rgba(255,107,107,0.1);
}

.tag-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 16px;
  background: rgba(20,20,40,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: all 200ms ease;
  z-index: 50;
  min-width: 120px;
  max-width: 300px;
}
.tag-url {
  color: var(--text-secondary);
  font-size: 10px;
  word-break: break-all;
  white-space: normal;
  display: inline-block;
}

/* --- 文件夹 --- */
.folders-area {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.folder {
  border-radius: 8px;
  overflow: hidden;
}

.folder-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  cursor: default;
  border-radius: 8px;
  transition: background var(--transition);
  background: rgba(255,255,255,0.02);
}
.folder-header:hover {
  background: rgba(255,255,255,0.05);
}

.folder-toggle {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 10px;
  transition: transform 200ms ease;
}

.folder-icon {
  color: #fbbf24;
  font-size: 13px;
}

.folder-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.folder-count {
  font-size: 10px;
  color: var(--text-secondary);
}

.folder-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}
.folder-header:hover .folder-actions { opacity: 1; }

.folder-body {
  padding: 4px 0 8px 12px;
  border-left: 2px solid rgba(251,191,36,0.15);
  margin-left: 20px;
}

/* --- FAB 按钮 --- */
#fab-add {
  position: fixed;
  bottom: 32px;
  right: 72px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  cursor: pointer;
  z-index: 90;
  box-shadow: none;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
#fab-add:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(168,85,247,0.15));
  border-color: rgba(0,229,255,0.3);
  color: rgba(255,255,255,0.7);
  box-shadow: 0 4px 16px rgba(0,229,255,0.15);
}

/* --- Sheet 导航栏 --- */
#sheet-bar {
  position: fixed;
  top: 56px; bottom: 80px;
  right: 0;
  width: 56px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--border-card);
  gap: 6px;
}

.sheet-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sheet-tabs::-webkit-scrollbar { width: 3px; }
.sheet-tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.sheet-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  flex-shrink: 0;
}
.sheet-tab .sheet-name {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  min-height: 20px;
  overflow: hidden;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 1px;
}
.sheet-tab:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}
.sheet-tab.active {
  background: rgba(0,229,255,0.1);
  border-color: rgba(0,229,255,0.3);
  color: var(--color-tag);
}

.sheet-del {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(255,107,107,0.8);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  font-size: 8px;
  z-index: 2;
}
.sheet-tab:hover .sheet-del { display: flex; }
.sheet-del:hover { background: var(--color-danger); }

.sheet-add {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.sheet-add:hover {
  color: var(--color-tag);
  border-color: rgba(0,229,255,0.3);
}

/* --- 抽屉面板 --- */
#drawer {
  position: fixed;
  top: 0; bottom: 0;
  width: 320px;
  z-index: 200;
  background: var(--drawer-bg);
  backdrop-filter: blur(16px);
  border: none;
  box-shadow: none;
  overflow-y: auto;
  right: 0; left: auto;
  transform: translateX(100%);
  transition: transform 250ms ease-out, box-shadow 250ms ease-out;
  pointer-events: none;
}
#drawer[data-direction="left"] {
  left: 0; right: auto;
  transform: translateX(-100%);
  border-right: 1px solid var(--border-card);
}
#drawer[data-direction="right"] {
  right: 0; left: auto;
  transform: translateX(100%);
  border-left: 1px solid var(--border-card);
}
#drawer.show {
  transform: translateX(0);
  box-shadow: -4px 0 40px rgba(0,0,0,0.5);
  pointer-events: auto;
}
#drawer[data-direction="left"].show {
  box-shadow: 4px 0 40px rgba(0,0,0,0.5);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-card);
}

.drawer-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-back {
  background: transparent;
  border: none;
  color: var(--color-tag);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition);
}
.drawer-back:hover { background: rgba(0,229,255,0.1); }

.drawer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-title i { color: #fbbf24; }

.drawer-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: all var(--transition);
}
.drawer-close:hover {
  color: var(--color-danger);
  background: rgba(255,107,107,0.1);
}

.drawer-body {
  padding: 12px 16px;
}

.drawer-section {
  margin-bottom: 16px;
}

.drawer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.drawer-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-empty {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.drawer-folders {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-folder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-primary);
  transition: all var(--transition);
}
.drawer-folder-item:hover {
  background: rgba(255,255,255,0.08);
}
.drawer-folder-item i { color: #fbbf24; }

.drawer-ops {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-op-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-stack);
  transition: all var(--transition);
}
.drawer-op-btn:hover {
  background: rgba(255,255,255,0.08);
}
.drawer-op-btn.danger {
  color: var(--color-danger);
}
.drawer-op-btn.danger:hover {
  background: rgba(255,107,107,0.1);
}

/* --- 弹窗 --- */
#modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
#modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

#modal-box {
  background: rgba(20,20,40,0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 300ms ease-out;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
#modal-overlay.show #modal-box {
  transform: scale(1);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-tag), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-msg {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-field {
  margin-bottom: 16px;
}
.modal-field label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.modal-field input[type="text"],
.modal-field input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-stack);
  outline: none;
  transition: border-color var(--transition);
}
.modal-field input[type="text"]:focus,
.modal-field input[type="url"]:focus {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 8px rgba(0,229,255,0.1);
}

.modal-field input[type="color"] {
  width: 48px; height: 32px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 2px;
}

.modal-field input[type="range"] {
  width: 100%;
  accent-color: var(--color-tag);
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toggle-field label { margin-bottom: 0; }
.toggle-field input[type="checkbox"] {
  width: 40px; height: 22px;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-field input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #888;
  transition: all var(--transition);
}
.toggle-field input[type="checkbox"]:checked {
  background: rgba(0,229,255,0.3);
}
.toggle-field input[type="checkbox"]:checked::after {
  left: 21px;
  background: var(--color-tag);
}

/* 颜色选择器 */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.color-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.color-dot:hover {
  transform: scale(1.15);
}
.color-dot.active {
  border-color: #fff;
  box-shadow: 0 0 10px currentColor;
}

.modal-divider {
  height: 1px;
  background: var(--border-card);
  margin: 16px 0;
}

/* --- QQ风格设置面板 --- */
.settings-layout {
  display: flex;
  min-height: 360px;
  gap: 0;
  margin: 0 -24px -16px;
}

.settings-sidebar {
  width: 140px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.25);
  border-right: 1px solid var(--border-card);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-cat {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid transparent;
}
.settings-cat i { width: 16px; text-align: center; font-size: 12px; }
.settings-cat:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.settings-cat.active {
  color: var(--color-tag);
  border-left-color: var(--color-tag);
  background: rgba(0,229,255,0.06);
}

.settings-content {
  flex: 1;
  padding: 16px 24px;
  overflow-y: auto;
  min-width: 0;
}

.settings-panel {
  display: none;
}
.settings-panel.active {
  display: block;
}

.sp-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-card);
}

.field-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* 动画类型选择器 */
.anim-type-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.anim-type-option {
  cursor: pointer;
}
.anim-type-option input[type="radio"] { display: none; }

.anim-type-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  transition: all var(--transition);
}
.anim-type-card i {
  font-size: 20px;
  color: var(--text-secondary);
  width: 24px;
  text-align: center;
  transition: color var(--transition);
}
.anim-type-card span {
  font-size: 13px;
  color: var(--text-primary);
}
.anim-type-card small {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.anim-type-option:hover .anim-type-card {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}
.anim-type-option.selected .anim-type-card {
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.08);
}
.anim-type-option.selected .anim-type-card i {
  color: var(--color-tag);
}

.btn-export, .btn-import {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-stack);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-export:hover, .btn-import:hover {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.3);
  color: var(--color-tag);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-cancel, .btn-confirm, .btn-danger {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-stack);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-cancel {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}
.btn-cancel:hover { background: rgba(255,255,255,0.12); }

.btn-confirm {
  background: linear-gradient(135deg, var(--color-tag), var(--color-purple));
  color: #fff;
}
.btn-confirm:hover {
  box-shadow: 0 4px 16px rgba(0,229,255,0.3);
}

.btn-danger {
  background: rgba(255,107,107,0.15);
  color: var(--color-danger);
}
.btn-danger:hover {
  background: rgba(255,107,107,0.25);
}

/* --- 拖拽幽灵 --- */
.drag-ghost {
  opacity: 0.4;
  border: 1px dashed rgba(0,229,255,0.4) !important;
}

.sortable-chosen {
  box-shadow: 0 4px 20px rgba(0,229,255,0.2) !important;
}

/* --- 滚动条 --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ===== AI 悬浮按钮 ===== */
#ai-fab {
  position: fixed;
  bottom: 100px;
  right: 72px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.3);
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(168,85,247,0.15));
  backdrop-filter: blur(8px);
  color: var(--color-tag);
  font-size: 20px;
  cursor: pointer;
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  transition: all 300ms ease;
  box-shadow: 0 2px 12px rgba(0,229,255,0.15);
}
#ai-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,229,255,0.3);
  border-color: rgba(0,229,255,0.5);
}
#ai-fab.ai-active {
  background: linear-gradient(135deg, rgba(0,229,255,0.3), rgba(168,85,247,0.3));
  border-color: var(--color-tag);
  box-shadow: 0 4px 24px rgba(0,229,255,0.4);
}

/* ===== AI 对话面板 ===== */
#ai-panel {
  position: fixed;
  bottom: 160px;
  right: 72px;
  width: 380px;
  height: 520px;
  border-radius: 16px;
  border: 1px solid rgba(0,229,255,0.15);
  background: rgba(10,10,26,0.95);
  backdrop-filter: blur(20px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms ease, opacity 250ms ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,229,255,0.08);
}
#ai-panel.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* AI 面板头部 */
.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.ai-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-tag);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-title i { font-size: 14px; }
.ai-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 14px;
}
.ai-close:hover {
  background: rgba(255,107,107,0.15);
  color: var(--color-danger);
}

/* AI 快捷操作 */
.ai-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ai-shortcut {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,229,255,0.2);
  background: rgba(0,229,255,0.06);
  color: var(--color-tag);
  font-size: 11px;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.ai-shortcut:hover {
  background: rgba(0,229,255,0.12);
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 8px rgba(0,229,255,0.15);
}
.ai-shortcut i { font-size: 10px; }

/* AI 消息区域 */
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-msg {
  max-width: 90%;
  animation: aiMsgIn 250ms ease-out;
}
@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 系统消息 */
.ai-msg-system .ai-msg-content {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 14px;
}

/* 用户消息 */
.ai-msg-user {
  align-self: flex-end;
}
.ai-msg-user .ai-msg-content {
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 14px 14px 4px 14px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
}

/* AI 回复 */
.ai-msg-assistant {
  align-self: flex-start;
}
.ai-msg-assistant .ai-msg-content {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px 14px 14px 4px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.7;
  padding: 10px 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* AI 打字指示器 */
.ai-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.ai-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-tag);
  opacity: 0.4;
  animation: aiTypeDot 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTypeDot {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* AI 错误消息 */
.ai-msg-error .ai-msg-content {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: 12px;
  color: var(--color-danger);
  font-size: 12px;
  padding: 10px 14px;
}

/* AI 输入区域 */
.ai-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
#ai-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-stack);
  line-height: 1.5;
  resize: none;
  max-height: 80px;
  transition: border-color var(--transition);
}
#ai-input:focus {
  outline: none;
  border-color: rgba(0,229,255,0.4);
}
#ai-input::placeholder {
  color: var(--text-secondary);
  font-size: 12px;
}
#ai-send {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--color-tag), var(--color-purple));
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 14px;
  flex-shrink: 0;
}
#ai-send:hover {
  box-shadow: 0 2px 12px rgba(0,229,255,0.3);
  transform: scale(1.05);
}
#ai-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== 大模型设置面板 ===== */
.settings-panel .model-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.model-preset-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.model-preset-card:hover {
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
}
.model-preset-card.selected {
  border-color: var(--color-tag);
  background: rgba(0,229,255,0.1);
  box-shadow: 0 0 12px rgba(0,229,255,0.15);
}
.model-preset-card .model-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.model-preset-card .model-desc {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* API Key 输入框容器 */
.api-key-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.api-key-wrapper input {
  flex: 1;
  padding-right: 36px;
}
.api-key-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}
.api-key-toggle:hover { color: var(--text-primary); }

/* 测试连接按钮 */
.btn-test-conn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.08);
  color: var(--color-tag);
  font-size: 12px;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}
.btn-test-conn:hover {
  background: rgba(0,229,255,0.15);
  box-shadow: 0 0 10px rgba(0,229,255,0.2);
}
.btn-test-conn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.conn-result {
  font-size: 11px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
}
.conn-result.success {
  background: rgba(52,211,153,0.1);
  color: #34d399;
}
.conn-result.error {
  background: rgba(255,107,107,0.1);
  color: var(--color-danger);
}

/* ===== AI 确认卡片 ===== */
.ai-confirm-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 10px;
  padding: 14px;
}
.ai-confirm-summary {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}
.ai-confirm-details {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}
.ai-confirm-details::-webkit-scrollbar { width: 4px; }
.ai-confirm-details::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* 计划项 - 通用 */
.ai-plan-group {
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 6px;
  border-left: 3px solid var(--color-tag);
}
.ai-plan-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(0,229,255,0.1);
  color: var(--color-tag);
  font-size: 10px;
  margin-right: 6px;
  vertical-align: middle;
}
.ai-plan-group-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  vertical-align: middle;
}
.ai-plan-badge-new {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(52,211,153,0.15);
  color: #34d399;
  font-size: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.ai-plan-tag-count {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 8px;
  vertical-align: middle;
}
.ai-plan-tag-list {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ai-plan-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
  color: var(--color-tag);
  font-size: 11px;
  white-space: nowrap;
}

.ai-plan-tag-new {
  background: rgba(52,211,153,0.08);
  border-color: rgba(52,211,153,0.2);
  color: #34d399;
}

/* 失效书签检测进度 */
.ai-check-progress {
  padding: 6px 0;
  font-size: 12px;
  color: #00e5ff;
  margin-bottom: 4px;
}

/* 失效书签区域 */
.ai-invalid-section {
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,107,107,0.06);
  border: 1px solid rgba(255,107,107,0.15);
}
/* 格式无效区域：红色边框 */
.ai-invalid-format-section {
  background: rgba(255,107,107,0.06);
  border-color: rgba(255,107,107,0.2);
}
/* 不可达区域：琥珀色边框 */
.ai-unreachable-section {
  background: rgba(251,191,36,0.04);
  border-color: rgba(251,191,36,0.15);
}
.ai-unreachable-section .ai-invalid-header {
  color: #fbbf24;
}
.ai-invalid-header {
  font-size: 12px;
  font-weight: 600;
  color: #ff6b6b;
  margin-bottom: 6px;
}
.ai-invalid-list {
  max-height: 120px;
  overflow-y: auto;
}
.ai-invalid-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ai-invalid-item:last-child {
  border-bottom: none;
}
/* 不可达标签的勾选行 */
.ai-unreachable-item {
  padding: 4px 2px;
}
.ai-unreachable-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 100%;
}
.ai-unreachable-check {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(251,191,36,0.4);
  border-radius: 3px;
  background: rgba(251,191,36,0.06);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
.ai-unreachable-check:checked {
  background: rgba(251,191,36,0.2);
  border-color: #fbbf24;
}
.ai-unreachable-check:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #fbbf24;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ai-unreachable-check:hover {
  border-color: #fbbf24;
  background: rgba(251,191,36,0.1);
}
.ai-invalid-name {
  color: #e0e0e0;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-invalid-url {
  color: #666;
  font-size: 10px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-invalid-reason {
  color: #ff6b6b;
  font-size: 10px;
  opacity: 0.7;
  margin-left: auto;
  white-space: nowrap;
}

/* 导入快捷按钮特殊样式 */
.ai-shortcut-import {
  background: rgba(168,85,247,0.08) !important;
  border-color: rgba(168,85,247,0.2) !important;
}

/* 导入进度区 */
.ai-import-progress {
  padding: 4px 0;
}
.ai-import-file {
  font-size: 12px;
  color: #a855f7;
  margin-bottom: 6px;
}
.ai-import-file i { margin-right: 4px; }
.ai-import-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}
.ai-import-stats i { margin-right: 3px; }
.ai-import-analyzing {
  font-size: 11px;
  color: #00e5ff;
}
.ai-import-analyzing i { margin-right: 4px; }

/* 导入确认卡片统计 */
.ai-import-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ai-import-stat {
  font-size: 11px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-import-stat i { font-size: 12px; }

/* 移动项 */
.ai-plan-move {
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}
.ai-plan-move i { color: var(--color-tag); font-size: 10px; }
.ai-plan-arrow { color: var(--text-secondary); }
.ai-plan-target {
  color: #34d399;
  font-weight: 500;
}
.ai-plan-reason {
  font-size: 11px;
  color: var(--text-secondary);
  width: 100%;
  margin-top: 2px;
  padding-left: 18px;
}

/* 去重项 */
.ai-plan-dup {
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.ai-plan-dup-keep, .ai-plan-dup-remove {
  padding: 2px 0;
}
.ai-plan-dup-remove {
  color: var(--color-danger);
}

/* 推荐项 */
.ai-plan-rec {
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 6px;
}
.ai-plan-rec-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.ai-plan-rec-url {
  font-size: 11px;
  color: var(--color-tag);
  margin: 2px 0;
  word-break: break-all;
}
.ai-plan-rec-target {
  font-size: 11px;
  color: #34d399;
}

/* 智能排序详情 */
.ai-plan-sort-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 4px;
}
.ai-plan-sort-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,229,255,0.12);
  color: #00e5ff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-plan-sort-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}
.ai-plan-sort-category {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(168,85,247,0.12);
  color: #a855f7;
  flex-shrink: 0;
}

/* 确认按钮 */
.ai-confirm-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ai-btn-cancel, .ai-btn-confirm {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-family: var(--font-stack);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-btn-cancel {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}
.ai-btn-cancel:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.ai-btn-confirm {
  background: linear-gradient(135deg, var(--color-tag), var(--color-accent));
  color: #fff;
  font-weight: 600;
}
.ai-btn-confirm:hover {
  box-shadow: 0 0 16px rgba(0,229,255,0.3);
  transform: scale(1.02);
}
.ai-btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 执行结果 */
.ai-result-success {
  color: #34d399;
  font-size: 13px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-result-success i { font-size: 16px; }
.ai-result-error {
  color: var(--color-danger);
  font-size: 13px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-result-error i { font-size: 16px; }

/* 响应式: 小屏幕AI面板 */
@media (max-width: 480px) {
  #ai-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 80px;
    height: 60vh;
  }
  #ai-fab {
    right: 16px;
    bottom: 24px;
  }
  .ai-confirm-details {
    max-height: 180px;
  }
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
