/* OpenStock Lab · floating right sidebar, ported from NiceGUI floating_right_sidebar.py */
body.has-floating-right-sidebar {
  --floating-right-rail-reserve: 44px;
  margin-right: var(--floating-right-rail-reserve) !important;
}

body.has-floating-right-sidebar .sa-root {
  right: var(--floating-right-rail-reserve) !important;
}

.floating-right-sidebar,
.floating-right-sidebar * {
  box-sizing: border-box;
}

.floating-right-sidebar {
  --frs-rail-width: 44px;
  --frs-drawer-width: 340px;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(var(--frs-rail-width) + var(--frs-drawer-width));
  display: flex;
  flex-direction: row;
  align-items: stretch;
  /* 高于行情侧栏(3000)，避免展开行情侧栏时浮动侧栏被挡；
     低于分组对话框遮罩(4000)/toast(4500)，弹窗仍在其上 */
  z-index: 3500;
  transform: translateX(var(--frs-drawer-width));
  transition: transform 0.24s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

.floating-right-sidebar.frs-open {
  transform: translateX(0);
}

.floating-right-sidebar.frs-collapsed {
  transform: translateX(var(--frs-drawer-width));
}

.floating-right-sidebar.frs-hidden {
  display: none !important;
}

.frs-rail {
  width: var(--frs-rail-width);
  min-width: var(--frs-rail-width);
  height: 100%;
  background: #374151;
  border-left: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.frs-rail-main {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 0;
}

.frs-rail-bottom {
  flex: 0 0 auto;
  width: 100%;
  padding-bottom: 10px;
  position: relative;
}

.frs-rail-item {
  width: 100%;
  min-height: 72px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 0;
  box-shadow: none;
  text-decoration: none;
  font: inherit;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.frs-rail-item:hover,
.floating-right-sidebar.frs-open.frs-mode-search .frs-rail-search,
.floating-right-sidebar.frs-open.frs-mode-share .frs-rail-share,
.floating-right-sidebar.frs-open.frs-mode-watchlist .frs-rail-watchlist,
.floating-right-sidebar.frs-open.frs-mode-import .frs-rail-import {
  background: #1e40af;
  color: #ffffff;
  box-shadow: none;
}

.frs-rail-item:hover {
  transform: none;
}

.frs-rail-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 20px;
  line-height: 1;
}

.frs-qr-rail-icon {
  width: 19px;
  height: 19px;
  display: block;
  position: relative;
}

.frs-qr-corner,
.frs-qr-dot {
  display: block;
  border-radius: 1px;
  position: absolute;
}

.frs-qr-corner {
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  background: transparent;
}

.frs-qr-corner::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: currentColor;
  border-radius: 1px;
}

.frs-qr-dot {
  width: 3px;
  height: 3px;
  background: currentColor;
}

.frs-qr-corner-tl {
  left: 0;
  top: 0;
}

.frs-qr-corner-tr {
  right: 0;
  top: 0;
}

.frs-qr-corner-bl {
  left: 0;
  bottom: 0;
}

.frs-qr-dot-a {
  left: 10px;
  top: 10px;
}

.frs-qr-dot-b {
  right: 0;
  top: 10px;
}

.frs-qr-dot-c {
  left: 10px;
  bottom: 0;
}

.frs-qr-dot-d {
  left: 8px;
  top: 8px;
}

.frs-qr-dot-e {
  right: 0;
  bottom: 0;
}

.frs-rail-text {
  font-size: 12px;
  line-height: 1.15;
  color: inherit;
}

.frs-qr-entry {
  width: 100%;
  position: relative;
}

.frs-qr-popover {
  position: absolute;
  right: 100%;
  bottom: 0;
  width: 142px;
  padding: 10px;
  display: flex;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1810;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.frs-qr-popover::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
}

.frs-qr-entry:hover .frs-qr-popover,
.frs-qr-entry:focus-within .frs-qr-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.frs-qr-card {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.frs-qr-label {
  width: 100%;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.frs-qr-image,
.frs-qr-placeholder {
  width: 120px;
  height: 120px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f9fafb;
}

.frs-qr-image {
  display: block;
  object-fit: contain;
}

.frs-qr-placeholder {
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  padding: 10px;
}

.frs-drawer {
  width: var(--frs-drawer-width);
  min-width: var(--frs-drawer-width);
  height: 100%;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.frs-header {
  height: 56px;
  min-height: 56px;
  width: 100%;
  padding: 0 12px 0 16px;
  margin: 0;
  gap: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.frs-header-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.frs-header-icon {
  color: #f97316;
  font-size: 21px;
  line-height: 1;
}

.frs-title {
  min-width: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frs-close-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.frs-close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.frs-drawer-panel {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
}

.frs-search-area {
  width: 100%;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
}

.frs-search-input {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.frs-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.frs-filters {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.frs-filter-btn {
  height: 28px;
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: none;
  cursor: pointer;
}

.frs-filter-btn:hover {
  color: #1f2937;
  background: #e5e7eb;
}

.frs-filter-active {
  color: #ffffff;
  background: #2563eb;
}

.frs-content {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
}

.frs-section-caption {
  width: 100%;
  padding: 4px 14px 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.2;
}

.frs-result-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}

.frs-group-title {
  width: 100%;
  padding: 8px 14px 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.frs-result-item {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 8px 12px 8px 14px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background-color 0.16s ease;
}

.frs-result-item:hover {
  background: #fff7ed;
}

.frs-home-panel {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.frs-home-list {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.frs-home-item {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 9px 12px 9px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 10px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background-color 0.16s ease;
  /* 行是 <a>（可拖 + 支持中键新标签打开）：清掉链接的默认观感 */
  text-decoration: none;
  color: inherit;
  user-select: none;
}

.frs-home-item:hover {
  background: #fff7ed;
}

.frs-home-icon {
  flex: 0 0 auto;
  width: 22px;
  text-align: center;
  font-size: 15px;
  line-height: 1;
}

/* ---- 插件面板（原「目录」）：头部的分组下拉 + 当前页标记 -------------------- */
.frs-pg-slot {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 4px;
  display: flex;
  align-items: center;
}

.frs-pg-select {
  width: 100%;
  max-width: 210px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.frs-pg-select:focus {
  outline: none;
  border-color: #f97316;
}

.frs-home-item-current {
  background: #fff7ed;
}

.frs-home-mark {
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.6;
}

/* 组内拖动排序：拖动中的行 + 落点提示（沿用「插件中心」卡片拖拽的手势样式） */
.frs-home-item.dragging {
  opacity: 0.45;
}

.frs-home-item.drop-before {
  box-shadow: inset 0 3px 0 #f97316;
}

.frs-home-item.drop-after {
  box-shadow: inset 0 -3px 0 #f97316;
}

.frs-home-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frs-result-name {
  width: 100%;
  min-width: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frs-result-code {
  width: 100%;
  min-width: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frs-result-badge {
  flex: 0 0 auto;
  justify-self: end;
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #2563eb;
  background: #eff6ff;
}

.frs-result-badge-board {
  color: #047857;
  background: #ecfdf5;
}

.frs-result-badge-stock {
  color: #2563eb;
  background: #eff6ff;
}

.frs-empty,
.frs-loading {
  width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9ca3af;
  padding: 20px 16px;
  text-align: center;
}

.frs-empty-icon,
.frs-loading-icon {
  font-size: 34px;
  color: #d1d5db;
  line-height: 1;
}

.frs-empty-text,
.frs-loading-text {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.frs-share-panel,
.frs-import-panel {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.frs-import-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.frs-import-target {
  display: flex;
  align-items: center;
  gap: 8px;
}

.frs-import-target-label {
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
}

.frs-import-select {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
  font-size: 13px;
  font-family: inherit;
  padding: 0 8px;
}

.frs-import-newname {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 13px;
  font-family: inherit;
}

.frs-import-err {
  min-height: 16px;
  font-size: 12px;
  color: #dc2626;
}

.frs-import-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #374151;
}
.frs-import-table thead th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  text-align: left;
  padding: 6px 6px;
  border-bottom: 1px solid #e5e7eb;
}
.frs-import-table tbody td {
  padding: 6px 6px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.frs-import-review-no {
  color: #6b7280;
  text-align: center;
  white-space: nowrap;
  width: 28px;
}
.frs-import-review-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Microsoft YaHei", sans-serif;
  white-space: nowrap;
}
.frs-import-review-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.frs-import-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.frs-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.frs-badge-exists {
  background: #f3f4f6;
  color: #9ca3af;
}
.frs-badge-new {
  background: #dcfce7;
  color: #15803d;
}
.frs-import-invalid-cap {
  margin-top: 8px;
  font-size: 12px;
  color: #b45309;
}
.frs-import-invalid-list {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.frs-form-label {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.frs-form-help {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.frs-textarea {
  width: 100%;
  min-height: 120px;
  max-height: 280px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.5;
  font-family: inherit;
  outline: none;
}

.frs-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.frs-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.frs-action-btn {
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #2563eb;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.frs-action-btn:hover {
  background: #1d4ed8;
}

.frs-action-btn.secondary {
  color: #4b5563;
  background: #f3f4f6;
}

.frs-action-btn.secondary:hover {
  color: #111827;
  background: #e5e7eb;
}

.frs-import-review {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
}

.frs-import-row {
  min-height: 38px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 13px;
}

.frs-import-row:last-child {
  border-bottom: 0;
}

.frs-import-no {
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.frs-import-code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Microsoft YaHei", sans-serif;
}

/* ---- 自选列表面板（参考 new_charts.py 左侧自选股面板） ---------------------- */
.frs-wl-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 分组选择器（已移入抽屉头部，替代标题以节省纵向空间） */
.frs-wl-group-slot {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.frs-wl-group {
  padding: 12px 12px 8px;
  border-bottom: 1px solid #e5e7eb;
}
.frs-wl-group-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.frs-wl-import-btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.frs-wl-import-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
}
.frs-wl-group-btn {
  width: 100%;
  text-align: left;
  background: #f3f4f6;
  color: #1f2937;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frs-wl-group-btn:hover {
  background: #e5e7eb;
}
.frs-wl-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  z-index: 3600;
  display: none;
}
.frs-wl-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frs-wl-dropdown-item:hover {
  background: #f9fafb;
}
.frs-wl-dropdown-item:last-child {
  border-bottom: 0;
}

/* 列表区域 */
.frs-wl-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 表头 */
.frs-wl-header {
  display: flex;
  background: #f9fafb;
  border-bottom: 2px solid #d1d5db;
}
.frs-wl-header-cell {
  flex: 1 1 25%;
  padding: 8px 2px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border-right: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
}
.frs-wl-header-cell:last-child {
  border-right: 0;
}
.frs-wl-header-cell:hover {
  background: #f3f4f6;
}
.frs-wl-sort-arr {
  font-size: 10px;
  color: #3b82f6;
  width: 8px;
  text-align: center;
}

/* 行 */
.frs-wl-row {
  display: flex;
  min-height: 34px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.frs-wl-row:hover {
  background: #eff6ff;
}
.frs-wl-cell {
  flex: 1 1 25%;
  padding: 6px 2px;
  font-size: 12px;
  color: #374151;
  text-align: center;
  border-right: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.frs-wl-cell:last-child {
  border-right: 0;
}
.frs-wl-cell.up {
  color: #ef4444;
}
.frs-wl-cell.down {
  color: #22c55e;
}
.frs-wl-cell.flat {
  color: #6b7280;
}
.frs-wl-cell-num {
  justify-content: flex-end;
  padding-right: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Microsoft YaHei", sans-serif;
}

/* 分组为空时的简单文案 */
.frs-wl-empty-text {
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  padding: 12px 8px;
}

/* 导入弹窗（替代原独立「导入」模式，挂在自选头部旁） */
.frs-action-btn.primary {
  background: #2563eb;
}
.frs-action-btn.primary:hover {
  background: #1d4ed8;
}
.frs-action-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 768px) {
  .floating-right-sidebar {
    --frs-drawer-width: min(340px, calc(100vw - var(--frs-rail-width)));
  }
}
