/* ========================================
   TAIJI INVITATION - PROFESSIONAL DESIGN SYSTEM
   ======================================== */

:root {
  /* Primary Colors */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-primary-dark: #1e40af;

  /* Secondary Colors */
  --color-secondary: #059669;
  --color-secondary-hover: #047857;
  --color-secondary-light: #d1fae5;

  /* Neutral Colors */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;

  --font-size-xs: 0.93rem;
  /* 12px */
  --font-size-sm: 0.95rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing Scale */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-base: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-base: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

/* 外层容器 */
#in-taiji-container {
  position: fixed;
  top: 50px;
  right: -20px;
  z-index: 99998;
  width: 80px;
  height: 80px;
  cursor: pointer;
  user-select: none;
}

/* 可旋转的按钮 */
#in-taiji-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: url(assets/logo.svg) no-repeat center;
  background-size: 100% auto;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 0;
  left: 0;
}

/* 不旋转的按钮 */
#in-taiji-btn-2 {
  width: 45px;
  height: 45px;
  background: url(assets/logo.png) no-repeat center;
  background-size: 100% auto;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  position: absolute;
  top: 7px;
  /* 微调位置 */
  left: 7px;
  /* 微调位置 */
  z-index: 2;
  /* 确保它不继承任何transform */
  transform: none !important;
  pointer-events: none;
  /* 如果不希望它接收点击事件 */
  z-index: 999999;
}

/* 容器hover效果 */
#in-taiji-container:hover #in-taiji-btn {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* 主按钮旋转时，确保第二个按钮不受影响 */
#in-taiji-container.rotated #in-taiji-btn {
  transform: rotate(180deg);
}

#in-taiji-container.rotated:hover #in-taiji-btn {
  transform: rotate(180deg) scale(1.05);
}

.in-taiji-button-group {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.in-text-set {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Browser Extension Optimized Layout */
#in-taiji-popup {
  display: none;
  position: fixed;
  top: 60px;
  right: 15px;
  width: min(480px, calc(100vw - 30px));
  max-width: 480px;
  height: min(700px, calc(100vh - 80px));
  background: white;
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-xl);
  z-index: 99998;
  font-family: var(--font-family-base);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Popup with fixed bottom buttons */
#in-taiji-popup.has-fixed-buttons {
  position: relative;
}

#in-taiji-popup.has-fixed-buttons .in-button-group-popup-fixed {
  position: absolute;
  bottom: 0;
}

#in-taiji-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* Extension Optimized Tab Navigation */
.in-tabs {
  display: flex;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  padding: 0;
}

.in-tab {
  flex: 1;
  padding: 10px 8px;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  font-size: 12px;
  color: var(--color-gray-600);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  user-select: none;
  text-align: center;
  line-height: 1.2;
  background: transparent;
  border-right: 1px solid var(--color-gray-200);
}

.in-tab:last-child {
  border-right: none;
}

.in-tab:hover {
  color: var(--color-primary);
  background: white;
}

.in-tab.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  border-bottom-color: var(--color-primary);
  background: white;
  font-size: 15px;
}

/* Extension Optimized Content Panels */
.in-tab-panel {
  display: none;
  padding: 12px;
  height: calc(100% - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.in-tab-panel.active {
  display: block;
  animation: fadeInUp 0.2s ease-out;
}

/* Tab panel content area */
.in-tab-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 12px;
}

/* Config panel specific layout */
#in-config {
  position: relative !important;
  overflow-y: auto !important;
}

/* Container for content with bottom buttons */
.in-content-with-bottom-buttons {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.in-content-with-bottom-buttons .in-main-content {
  flex: 1;
}

.in-content-with-bottom-buttons .in-bottom-buttons {
  margin-top: auto;
  padding-top: 16px;
}

/* Tab panel with sticky bottom buttons */
.in-tab-panel-with-sticky-buttons {
  padding-bottom: 0 !important;
}


/* Professional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Loading States */
.in-loading {
  position: relative;
  pointer-events: none;
}

.in-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      var(--color-gray-200),
      transparent);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: inherit;
}

.in-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-200);
  border-top: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

/* Professional Scrollbars */
.in-scrollable {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) var(--color-gray-100);
}

.in-scrollable::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.in-scrollable::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
}

.in-scrollable::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.in-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

.in-scrollable::-webkit-scrollbar-corner {
  background: var(--color-gray-100);
}

/* Apply to existing scrollable elements */
.in-tab-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) var(--color-gray-100);
}

.in-tab-panel::-webkit-scrollbar {
  width: 8px;
}

.in-tab-panel::-webkit-scrollbar-track {
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
}

.in-tab-panel::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.in-tab-panel::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}

/* 日志区域 */
#in-log-container {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 6px;
  background: #fafafa;
}

#in-ai-title-btn {
  position: absolute;
  right: 0px;
  bottom: -6px;
  transform: translateY(100%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  background: rgb(255, 255, 255);
  cursor: pointer;
  font-size: 12px;
}

#in-preview-container {
  position: absolute;
  right: 100px;
  bottom: -8px;
  transform: translateY(100%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

#in-preview-container-span {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 80px;
}

#in-preview-container-btn {
  padding: 2px 8px;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  background-color: rgb(44, 62, 80);
  cursor: pointer;
  font-size: 12px;
  color: white;
  margin-top: -60px;
  position: relative;
}

.in-ios-switch {
  position: relative;
  display: inline-block;
  width: 46px !important;
  height: 24px;
  flex-shrink: 0;
  background: #fff !important;
}

.in-ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.in-ios-switch label {
  font-size: 10px;
  color: red;
}

.in-ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.in-ios-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.in-ios-switch input:checked+.in-ios-slider {
  background: #1E90FF;
}

.in-ios-switch input:checked+.in-ios-slider:before {
  transform: translateX(22px);
}

.in-toggle-group {
  display: block;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
}

.in-toggle-label {
  margin-right: 5px;
}

.in-log-list {
  max-height: 100%;
  overflow-y: auto;
}

/* .in-log-entry {
  background: #f5f5f5;
  border-left: 4px solid #4a90e2;
  padding: 5px;
  margin-bottom: 5px;
  border-radius: 8px;
  transition: background 0.3s;
}

.in-log-entry:hover {
  background: #eef6ff;
}

.in-log-timestamp {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.25rem;
}

.in-log-message {
  font-weight: bold;
  color: #333;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
} */

.in-tips-txt {
  font-size: 10px;
}

.in-tab-panel p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--color-gray-600);
  margin-bottom: var(--space-3);
}

.in-text-muted {
  color: var(--color-gray-500);
  font-size: var(--font-size-xs);
}

.in-text-emphasis {
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-800);
}

.in-text-success {
  color: var(--color-success);
  font-weight: var(--font-weight-medium);
}

.in-text-warning {
  color: var(--color-warning);
  font-weight: var(--font-weight-medium);
}

.in-text-error {
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}


.in-button-group {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

/* Sticky button group at bottom of content */
.in-button-group-sticky {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--color-gray-200);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  justify-content: center;
  align-items: center;
  margin: 16px -12px 0 -12px;
}

/* Button group at bottom of content (not fixed) */
.in-button-group-bottom {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  margin-top: 20px;
  border-top: 1px solid var(--color-gray-200);
  justify-content: center;
  align-items: center;
  background: white;
}

/* Simple bottom button layout */
.in-buttons-at-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  background: white;
  padding-bottom: 16px;
}

.in-custom-button {
  font-size: 14px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 120px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.in-custom-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Default button styles */
.in-custom-button.start {
  background-color: #28a745;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.in-custom-button.start:hover {
  background-color: #218838;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.in-custom-button.pause {
  background-color: #ff9800;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.in-custom-button.pause:hover {
  background-color: #e68900;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* 邀请页面 (config tab) - 停止按钮红色 */
#in-config .in-custom-button.pause {
  background-color: #ff4d4f;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(255, 77, 79, 0.3);
}

#in-config .in-custom-button.pause:hover {
  background-color: #ff3333;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}

/* 客服页面 (customer tab) - 启动按钮蓝色 */
#in-customer .in-custom-button.start {
  background-color: #1677ff;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(22, 119, 255, 0.3);
}

#in-customer .in-custom-button.start:hover {
  background-color: #0958d9;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
}

/* 客服页面所有标题统一处理 */
/* #in-customer .in-label-nice {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 100px !important;
  max-width: 150px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
  height: 32px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  font-size: var(--font-size-xs) !important;
  font-weight: var(--font-weight-medium) !important;
} */

/* 特殊处理宽度80%的标题 */
/* #in-customer .in-label-nice[style*="width: 80%"] {
  flex: 1 !important;
  max-width: none !important;
} */

/* 我的页面所有标题统一处理 */
#in-my .in-label-nice {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 100px !important;
  max-width: 150px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
  height: 32px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  font-size: var(--font-size-xs) !important;
  font-weight: var(--font-weight-medium) !important;
}

/* 我的页面表单组布局 */
#in-my .in-form-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 8px !important;
}

/* 过滤器面板标题统一处理 */
#in-template label,
#in-template .in-form-group label {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 80px !important;
  max-width: 120px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
  height: 32px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: var(--font-weight-medium) !important;
  background: #fff;
}

/* 过滤器面板表单组布局 */
#in-template .in-form-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 12px !important;
}

/* 私信页面标题统一处理 */
/* #in-message .in-label-nice,
#in-message label {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 50px !important;
  max-width: 500px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
  height: 32px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  font-size: var(--font-size-xs) !important;
  font-weight: var(--font-weight-medium) !important;
} */

/* 私信页面表单组布局 */
#in-message .in-form-group {
  display: flex;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 12px !important;
}

/* 客服页面表单组保持水平布局 */
#in-customer .in-form-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

/* Disabled state for buttons */
.in-custom-button:disabled {
  background-color: var(--color-gray-300) !important;
  color: var(--color-gray-500) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.6;
}

/* Loading state for buttons */
.in-custom-button.loading {
  position: relative;
  color: transparent !important;
}

.in-custom-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@media (max-width: 480px) {
  .in-button-group {
    flex-direction: column;
    gap: 8px;
  }

  .in-button-group-sticky,
  .in-button-group-bottom {
    flex-direction: row;
    gap: 8px;
    padding: 12px 16px;
    margin: 16px -12px 0 -12px;
  }

  .in-custom-button {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    font-size: 13px;
  }
}

#in-new-toast-container {
  position: absolute;
  top: 10px;
  right: 30px;
  z-index: 999999;
  text-align: right;
}

/* <div class="in-wj-toast">12222</div> */
.in-new-wj-toast {
  display: block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #323232;
  color: white;
  border-radius: 5px;
  opacity: 0.95;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.3s ease;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  /* 更现代的写法，推荐 */
  white-space: normal;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* Professional Progress Indicators */
.in-progress {
  width: 100%;
  height: 8px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-2) 0;
  position: relative;
}

.in-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.in-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: shimmer 2s infinite;
}

.in-progress-lg {
  height: 12px;
}

.in-progress-sm {
  height: 4px;
}

/* Legacy Progress Bar */
#in-progress-container {
  width: 100%;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  height: 16px;
  margin: var(--space-2) 0;
  overflow: hidden;
  position: relative;
}

#in-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  color: white;
  line-height: 16px;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-full);
  position: relative;
}

#in-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: shimmer 2s infinite;
}

/* ========================================
   BROWSER EXTENSION SPECIFIC STYLES
   ======================================== */

/* Responsive Design for Extension */
@media (max-width: 450px) {
  #in-taiji-popup {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .in-tab {
    font-size: 10px;
    padding: 8px 4px;
  }

  .in-tab-panel {
    padding: 8px;
  }
}

/* Prevent horizontal overflow */
* {
  box-sizing: border-box;
}

#in-taiji-popup,
#in-taiji-popup * {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure no element causes horizontal scroll */
#in-taiji-popup {
  overflow-x: hidden;
}

.in-tab-panel {
  overflow-x: hidden;
}

/* Global button positioning fix */
/* button[style*="position: absolute"],
.in-add-row-btn[style*="position: absolute"],
a[style*="position: absolute"] {
  position: relative !important;
  right: auto !important;
  float: right !important;
  margin-left: auto !important;
} */

/* Fix for submit and end buttons */
#in-submitBtn,
#in-endBtn {
  position: relative !important;
  bottom: auto !important;
}

/* Container button styling */
.in-container-button {
  flex: 1;
  padding: 12px;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #4096ff;
}

#in-submitBtn {
  background-color: #4096ff !important;
}

#in-submitBtn:hover {
  background-color: #1677ff !important;
}

#in-endBtn {
  background-color: #ff4d4f !important;
}

#in-endBtn:hover {
  background-color: #ff3333 !important;
}

/* Form groups with buttons */
.in-form-group-with-button {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

.in-form-group-with-button label {
  flex: 0 0 100px;
  min-width: 100px;
  max-width: 120px;
}

.in-form-group-with-button input,
.in-form-group-with-button select,
.in-form-group-with-button textarea {
  flex: 1;
  min-width: 0;
}

.in-form-group-with-button button,
.in-form-group-with-button .in-add-row-btn {
  flex: 0 0 auto;
  margin-left: 8px;
  white-space: nowrap;
}

/* Ensure buttons don't overflow container */
.in-form-group {
  position: relative;
  overflow: visible;
}

.in-form-group button,
.in-form-group .in-add-row-btn {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .in-form-group-with-button {
    flex-wrap: wrap;
  }

  .in-form-group-with-button button,
  .in-form-group-with-button .in-add-row-btn {
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 8px;
    max-width: none;
  }
}

/* Fix for absolute positioned elements */
.in-form-group [style*="position: absolute"] {
  position: relative !important;
  right: auto !important;
  float: right;
}

/* Fix specific problematic buttons */
/* #in-template-btn,
#in-creatorGenerate,
#in-customerGenerate,
#in-orderGenerate,
#in-user-referral-bt {
  position: relative !important;
  right: auto !important;
  float: right;
  margin-left: auto;
} */

/* Fix bottom buttons container - simple and direct */
/* div[style*="position: absolute"][style*="bottom: 0px"] {
  position: static !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid #ddd !important;
  display: flex !important;
  gap: 12px !important;
} */

/* Fix buttons with float right */
[style*="float: right"] {
  float: right !important;
}

@media (max-width: 480px) {

  .in-form-group [style*="position: absolute"],
  #in-template-btn,
  #in-creatorGenerate,
  #in-customerGenerate,
  #in-orderGenerate,
  #in-user-referral-bt,
  [style*="float: right"] {
    float: none !important;
    width: 100% !important;
    margin-top: 8px !important;
    margin-left: 0 !important;
  }

  /* Fix form groups with absolute positioned children */
  .in-form-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Table responsive wrapper */
.in-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.in-table-wrapper table {
  min-width: 100%;
}

/* Text overflow handling */
.in-text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Flexible input containers */
.in-input-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.in-input-flex input {
  flex: 1;
  min-width: 0;
}

/* Responsive grid for settings */
.in-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.in-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.in-grid input {
  padding: 6px 8px;
  border: 1px solid var(--color-gray-300);
  border-radius: 4px;
  font-size: var(--font-size-xs);
  transition: var(--transition-fast);
}

.in-grid input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

/* Two-column layout for better space usage */
.in-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.in-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .in-grid-3col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {

  .in-grid,
  .in-grid-2col,
  .in-grid-3col {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Ensure buttons don't overflow */
.in-btn-responsive {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Utility classes for form layouts */
.in-label-narrow {
  flex: 0 0 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
}

.in-label-normal {
  flex: 0 0 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
}

.in-label-wide {
  flex: 0 0 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

.in-input-flex {
  flex: 1 !important;
  min-width: 0 !important;
}

/* Form row helpers */
.in-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.in-form-row-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {

  .in-form-row,
  .in-form-row-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .in-label-narrow,
  .in-label-normal,
  .in-label-wide {
    flex: none !important;
    min-width: auto !important;
    max-width: none !important;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus Indicators */
.in-focus-visible:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-gray-100: #f0f0f0;
    --color-gray-200: #e0e0e0;
    --color-gray-300: #c0c0c0;
    --color-gray-400: #a0a0a0;
    --color-gray-500: #808080;
    --color-gray-600: #606060;
    --color-gray-700: #404040;
    --color-gray-800: #202020;
    --color-gray-900: #000000;
  }

  .in-card,
  .in-form-control,
  .in-btn {
    border-width: 2px;
  }
}

/* Print Styles */
@media print {
  #in-taiji-popup {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: none;
    border: 1px solid #000;
  }

  .in-btn,
  .in-tab {
    border: 1px solid #000;
  }

  .in-tab-panel {
    display: block !important;
    page-break-inside: avoid;
  }
}

#in-one_load {
  line-height: 32px;
  display: None;
}

#in-tow_load {
  line-height: 32px;
  display: none;
}


.in-creator-section {
  margin-bottom: 10px;
  font-size: 14px;
}

.in-creator-section label {
  display: inline-block;
  width: 72px;
  font-weight: 500;
  vertical-align: middle;
}

.in-creator-input-inline {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.in-creator-input-inline label {
  width: auto;
  flex: 1;
}

.in-creator-input-inline input {
  width: 60px;
  padding: 2px 4px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.in-creator-section input[type="number"] {
  width: 70px;
  padding: 2px 4px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.in-creator-radio-group {
  display: flex;
  gap: 10px;
  font-weight: 500;
  padding-left: 2px;
}

.in-creator-title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.in-reator-section span {
  font-size: 12px;
}

.in-button-default {
  border: solid 1px;
  border-radius: 10px;
  font-size: 12px;
  padding: 3px;
  margin: 3px;
}

.in-login-box {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 380px;
  box-sizing: border-box;
  display: grid;
  position: relative;
  overflow: hidden;
}

.in-login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.in-login-box h2 {
  margin: 0 0 20px;
  font-size: 18px;
}

/* Professional Form Controls */
.in-form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--color-gray-900);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-base);
  transition: var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.in-form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.in-form-control:disabled {
  background: var(--color-gray-100);
  color: var(--color-gray-500);
  cursor: not-allowed;
}

.in-form-control::placeholder {
  color: var(--color-gray-400);
}

/* Form Control Variants */
.in-form-control-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
}

.in-form-control-lg {
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-base);
}

.in-form-control-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.in-form-control-success {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Legacy Input Styles */
.in-login-box input[type="text"],
.in-login-box input[type="password"] {
  width: 100%;
  padding: var(--space-3) var(--space-4) !important;
  margin-bottom: var(--space-3) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-sm) !important;
  line-height: var(--line-height-normal) !important;
  color: var(--color-gray-900) !important;
  background: white !important;
  border: 1px solid var(--color-gray-300) !important;
  border-radius: var(--radius-base) !important;
  transition: var(--transition-base) !important;
  box-shadow: var(--shadow-xs) !important;
}

.in-login-box input[type="text"]:focus,
.in-login-box input[type="password"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.in-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 12px;
}

.in-checkbox input {
  margin-right: 6px;
  width: 20px !important;
}

/* Professional Button System */
.in-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  border: 1px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: var(--transition-base);
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.in-btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.in-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--color-primary-light), 0 0 0 4px var(--color-primary);
}

.in-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Variants */
.in-btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.in-btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-base);
  transform: translateY(-1px);
}

.in-btn-primary:active {
  background: var(--color-primary-dark);
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.in-btn-secondary {
  background: var(--color-secondary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.in-btn-secondary:hover {
  background: var(--color-secondary-hover);
  box-shadow: var(--shadow-base);
  transform: translateY(-1px);
}

.in-btn-outline {
  background: white;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.in-btn-outline:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-hover);
  color: var(--color-primary-hover);
}

.in-btn-ghost {
  background: transparent;
  color: var(--color-gray-600);
  border-color: transparent;
}

.in-btn-ghost:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-800);
}

.in-btn-danger {
  background: var(--color-error);
  color: white;
  box-shadow: var(--shadow-sm);
}

.in-btn-danger:hover {
  background: #dc2626;
  box-shadow: var(--shadow-base);
  transform: translateY(-1px);
}

/* Button Sizes */
.in-btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
}

.in-btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
}

.in-btn-full {
  width: 100%;
}

/* Legacy Button Classes */
.in-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  border: 1px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: var(--transition-base);
  user-select: none;
  white-space: nowrap;
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
  width: 100%;
  margin-top: var(--space-3);
}

.in-login-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-base);
  transform: translateY(-1px);
}

.in-login-btn:active {
  background: var(--color-primary-dark);
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.in-login-box .in-register {
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
}

.in-register a {
  color: #1677ff;
  text-decoration: none;
}

#in-taiji-content {
  display: none;
  height: 100%;
}

.in-taiji-profile-card {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.in-taiji-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.in-taiji-info {
  text-align: left;
  margin-bottom: 20px;
}

.in-taiji-info p {
  margin: 5px 0;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.in-taiji-label {
  font-weight: bold;
}

.in-taiji-upgrade-btn {
  padding: 6px 12px;
  font-size: 12px;
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0px;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(82, 196, 26, 0.3);
}

.in-taiji-upgrade-btn:hover {
  background: linear-gradient(135deg, #49b118 0%, #2f7d0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(82, 196, 26, 0.4);
}

.in-taiji-logout-btn {
  margin-top: 50px;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.3);
}

.in-taiji-logout-btn:hover {
  background: linear-gradient(135deg, #ff3333 0%, #b8101a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 77, 79, 0.4);
}

.in-version-badge {
  position: absolute;
  top: 2px;
  right: 60px;
  background-color: #ff4757;
  color: white;
  padding: 0px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

#in-creator-tips {
  color: rgb(244, 67, 54);
  font-weight: bold;
  line-height: 32px;
}

/* .in-my_container {
  height: 95%;
  width: 300px;
  margin: 5px auto;
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 99999;
  border: 1px yellow solid;
} */

.in-my_container h2 {
  text-align: center;
  color: #333;
}

/* Extension Optimized Form Groups */
.in-form-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

/* Horizontal layout for form fields */
.in-form-group-horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.in-form-group-horizontal label {
  flex: 0 0 100px;
  min-width: 100px;
  max-width: 120px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.in-form-group-horizontal input,
.in-form-group-horizontal select,
.in-form-group-horizontal textarea {
  flex: 1;
  min-width: 0;
}

/* Compact form groups for better space utilization */
.in-form-group-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.in-form-group-compact label {
  flex: 0 0 80px;
  min-width: 80px;
  max-width: 100px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  text-align: left;
}

.in-form-group-compact input,
.in-form-group-compact select {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {

  .in-form-group,
  .in-form-group-horizontal,
  .in-form-group-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .in-form-group-horizontal label,
  .in-form-group-compact label {
    flex: none;
    min-width: auto;
    max-width: none;
    text-align: left;
  }
}

.in-form-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.in-form-group .in-form-label,
.in-form-group label {
  flex: 0 0 50px;
  min-width: 80px;
  max-width: 120px;
  margin-bottom: 0;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Special styling for form inputs in horizontal layout */
.in-form-group input[type="text"],
.in-form-group input[type="tel"],
.in-form-group input[type="date"],
.in-form-group input[type="number"],
.in-form-group select,
.in-form-group textarea {
  flex: 1;
  min-width: 0;
}

/* @media (max-width: 480px) {

  .in-form-group .in-form-label,
  .in-form-group label {
    flex: none;
    min-width: auto;
    max-width: none;
    width: 100%;
    white-space: normal;
    text-overflow: initial;
    overflow: visible;
  }
} */

/* Professional Form Labels */
.in-form-label {
  display: block;
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.in-form-label-required::after {
  content: ' *';
  color: var(--color-error);
}

.in-form-help {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  line-height: var(--line-height-normal);
  margin-top: var(--space-1);
}

.in-form-error {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  line-height: var(--line-height-normal);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Legacy Label Styles */
.in-form-group label {
  display: block;
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
  background: #e5e7eb;
}

.in-my_container label {
  font-weight: bold;
  display: block;
  margin-bottom: 0;
  color: #333;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 0 8px 8px 0;

}

.in-my_container input {
  padding: 5px;
  width: 200px;
}

/* Input error state */
.in-my_container input:invalid {
  border-color: red;
}

.in-my_container input:valid {
  border-color: green;
}

.in-my_container .in-close-btn {
  color: red;
  font-size: 40px;
  position: absolute;
  right: 0;
  top: -20px;
}


.in-my_container input[type="text"],
.in-my_container input[type="tel"],
.in-my_container input[type="date"],
.in-my_container input[type="number"],
.in-my_container textarea,
.in-my_container select {
  width: 100%;
  max-width: 100%;
  padding: 5px 10px;
  font-family: var(--font-family-base);
  font-size: 12px;
  color: var(--color-gray-900);
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: 4px;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.in-my_container input[type="text"]:focus,
.in-my_container input[type="tel"]:focus,
.in-my_container input[type="date"]:focus,
.in-my_container input[type="number"]:focus,
.in-my_container textarea:focus,
.in-my_container select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.in-my_container textarea {
  resize: vertical;
  min-height: 60px;
}

.in-my_container select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 32px;
  appearance: none;
}

.in-my_container textarea {
  resize: vertical;
}

/* .in-my_container #in-submitBtn {
  background-color: #52c41a !important;
  position: sticky;
  bottom: 0;
} */

.in-container-button {
  width: 100%;
  padding: 5px;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.in-my_container button:hover {
  background-color: #4096ff;
}

.in-my_container .in-log-list {
  overflow-y: auto;
  height: 100%;
}

.in-my_container #in-productTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 0;
}

/* Product table container */
#in-productTable {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  font-family: var(--font-family-base);
}

/* Product table wrapper with dynamic height */
.in-product-table-wrapper {
  max-height: 40vh;
  min-height: 20vh;
  overflow-y: auto;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-base);
  margin-bottom: 16px;
}

/* Ensure table headers are sticky */
#in-productTable thead th {
  position: sticky;
  top: 0;
  background: var(--color-gray-50);
  z-index: 10;
  border-bottom: 2px solid var(--color-gray-200);
}

.in-my_container #in-productTable td:nth-child(2) input,
.in-my_container #in-productTable td:nth-child(3) input {
  width: 60px;
}


/* Professional Table System */
.in-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  font-family: var(--font-family-base);
}

.in-table th,
.in-table td {
  padding: var(--space-4) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.in-table th {
  background: var(--color-gray-50);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-800);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--color-gray-200);
}

.in-table tbody tr {
  transition: var(--transition-fast);
}

.in-table tbody tr:hover {
  background: var(--color-primary-light);
}

.in-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Variants */
.in-table-striped tbody tr:nth-child(even) {
  background: var(--color-gray-50);
}

.in-table-striped tbody tr:nth-child(even):hover {
  background: var(--color-primary-light);
}

.in-table-borderless th,
.in-table-borderless td {
  border: none;
}

.in-table-sm th,
.in-table-sm td {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
}

/* Legacy Table Styles */
.in-my_container #in-productTable {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  font-family: var(--font-family-base);
}

.in-my_container #in-productTable th,
.in-my_container #in-productTable td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 11px;
  line-height: 1.3;
}

.in-my_container #in-productTable th {
  background: var(--color-gray-50);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-800);
  border-bottom: 2px solid var(--color-gray-200);
}

.in-my_container #in-productTable tbody tr {
  transition: var(--transition-fast);
}

.in-my_container #in-productTable tbody tr:hover {
  background: var(--color-primary-light);
}

.in-my_container #in-productTable th:first-child,
.in-my_container #in-productTable td:first-child {
  width: 60%;
}

.in-my_container #in-productTable th:nth-child(2),
.in-my_container #in-productTable td:nth-child(2),
.in-my_container #in-productTable th:nth-child(3),
.in-my_container #in-productTable td:nth-child(3) {
  width: 15%;
}

.in-my_container .in-add-row-btn {
  padding: 4px 8px;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  float: right;
  min-width: 70px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.in-my_container .in-add-row-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .in-my_container .in-add-row-btn {
    float: none !important;
    width: 100% !important;
    margin-top: 8px !important;
    margin-left: 0 !important;
  }
}

.in-my_container .in-add-row-btn:hover {
  background: var(--color-primary-hover);
}

.in-product-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  font-family: var(--font-family-base);
  min-width: 0;
}

.in-product-th,
.in-product-td {
  padding: var(--space-4) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.in-product-th {
  background: var(--color-gray-50);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-800);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--color-gray-200);
}

.in-product-table tbody tr {
  transition: var(--transition-fast);
}

.in-product-table tbody tr:nth-child(even) {
  background: var(--color-gray-50);
}

.in-product-table tbody tr:hover {
  background: var(--color-primary-light);
}

.in-product-table tbody tr:last-child .in-product-td {
  border-bottom: none;
}

.in-product-checkbox {
  width: 30px !important;
  margin: 0;
  text-align: center;
}

.in-product-thead-checkbox {
  width: 30px !important;
  margin: 0;
  text-align: center;
  padding: 0;
}

.in-product-state {
  width: 60px;
  text-align: center;
}

/* Professional Status Indicators */
.in-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  border-radius: var(--radius-full);
  border: 1px solid;
  position: relative;
}

.in-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.in-status-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-color: var(--color-success);
}

.in-status-success::before {
  background: var(--color-success);
}

.in-status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
  border-color: var(--color-warning);
}

.in-status-warning::before {
  background: var(--color-warning);
}

.in-status-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border-color: var(--color-error);
}

.in-status-error::before {
  background: var(--color-error);
}

.in-status-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-info);
  border-color: var(--color-info);
}

.in-status-info::before {
  background: var(--color-info);
}

/* Legacy Status Labels */
.in-status-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  border: 1px solid;
}

.in-status-available {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-color: var(--color-success);
}

.in-status-unavailable {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border-color: var(--color-error);
}



.in-product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.in-product-btn-container {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 10px;
  background: #fff;
  display: flex;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--color-gray-200);
  margin-top: auto;
}

.in-product-btn-container button {
  flex: 1;
  /* = 宽度自动平均分，即 50% */
  /* 其它按钮样式示例 */
  padding: 5px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}


.in-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  border: 1px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: var(--transition-base);
  user-select: none;
  white-space: nowrap;
  background: var(--color-secondary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.in-product-btn:hover {
  background: var(--color-secondary-hover);
  box-shadow: var(--shadow-base);
  transform: translateY(-1px);
}

.in-product-btn.cancel {
  background: var(--color-error);
}

.in-product-btn.cancel:hover {
  background: #dc2626;
  box-shadow: var(--shadow-base);
  transform: translateY(-1px);
}

.in-product-btn:disabled {
  background: var(--color-gray-300);
  color: var(--color-gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.5;
}

#in-product-select {
  position: fixed;
  top: 60px;
  right: 490px;
  max-height: 610px;
  overflow-y: auto;
  width: min(350px, calc(100vw - 30px));
  max-width: 350px;
  z-index: 99999;
  padding: 15px;
  background-color: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  box-sizing: border-box;
}

.in-hidden {
  display: none !important;
}

.in-product-th-w {
  width: 60px;
}

.in-product-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.in-product-thead {
  position: sticky;
  top: 30px;
  background-color: #fff;
  z-index: 1;
}

#in-sample-request {
  background-color: #fff;
  width: 100%;
}

#in-creator-message-send {
  background-color: #4096ff;
}

.in-score-tag {
  position: absolute;
  top: 100px;
  left: 10px;
  background-color: #ff8c00;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0.9;
  z-index: 10;
  pointer-events: none;
  /* 不干扰其他操作 */
  transition: transform 0.2s ease;
}

/* 漂浮效果 */
.in-score-tag:hover {
  transform: scale(1.1);
}


/* 外层包裹容器 */
.in-arco-table-content-inner {
  position: relative;
  padding-left: 30px;
}

/* 浮动分数栏整体 */
.in-score-overlay {
  margin-top: 50px;
  position: absolute;
  top: 0;
  width: 30px;
  /* 与 JS 中 overlayWidth 保持一致 */
  pointer-events: none;
}

/* 单个分数字块 */
.in-score-item {
  width: 40px;
  /* 行高与表格行一致 */
  text-align: center;
  font-weight: 600;
  color: #4096ff;
}

/* Extension Optimized Card System */
.in-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  font-family: var(--font-family-base);
  position: relative;
}

.in-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

/* Card Variants */
.in-card-elevated {
  box-shadow: var(--shadow-xl);
}

.in-card-flat {
  box-shadow: none;
  border: 2px solid var(--color-gray-100);
}

.in-card-primary {
  border-color: var(--color-primary-light);
  background: linear-gradient(135deg, white 0%, var(--color-primary-light) 100%);
}

.in-card-success {
  border-color: var(--color-secondary-light);
  background: linear-gradient(135deg, white 0%, var(--color-secondary-light) 100%);
}

/* Card Components */
.in-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-gray-200);
}

.in-card-body {
  margin-bottom: var(--space-4);
}

.in-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-gray-200);
}

/* Typography System */
.in-heading-1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-900);
  margin-bottom: var(--space-6);
}

.in-heading-2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-800);
  margin-bottom: var(--space-4);
}

.in-heading-3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--color-gray-800);
  margin-bottom: var(--space-3);
}

.in-body-large {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-700);
}

.in-body-base {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-gray-600);
}

.in-body-small {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-gray-500);
}

.in-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-900);
  margin-bottom: var(--space-5);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.in-card-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.in-subtitle {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--color-gray-800);
  margin: 5px;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.in-subtitle::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.in-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
}

.in-row label,
.in-grid label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.in-row input,
.in-grid input {
  margin-top: 4px;
  padding: 4px 6px;
  border: 1px solid #c0c4cc;
  border-radius: 4px;
  font-size: 13px;
}

/* 旧的网格保持不变 */
.in-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 12px;
  margin-bottom: 12px;
}

.in-grid input {
  margin-top: 4px;
  padding: 4px 6px;
  border: 1px solid #c0c4cc;
  border-radius: 4px;
  font-size: 13px;

  /* 关键：占满所在网格列但不超出 */
  width: 100%;
  /* 宽度随列自适应 */
  box-sizing: border-box;
  /* 让 padding/边框计入 width */
}

.in-all-btn {
  width: 100%;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.in-all-btn:hover {
  background: linear-gradient(135deg, #36a3f7 0%, #0f7ae5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(24, 144, 255, 0.4);
}

#in-settings {
  height: 650px;
}

/* 样式示例，所有类名以 in- 前缀 */
.in-filter-panel {
  position: absolute;
  top: 60px;
  right: 500px;
  max-height: 80vh;
  overflow-y: auto;
  width: 330px;
  font-family: system-ui, sans-serif;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  z-index: 9999;
}

.in-select,
.in-input {
  padding: 5px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font-size: 12px;
  width: 140px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.in-select:focus,
.in-input:focus {
  border-color: #40a9ff;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(64, 169, 255, 0.1);
  outline: none;
}

.in-search-box {
  flex: 1;
  min-width: 260px
}

.in-btn-search {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  background: #4096ff;
  color: #fff;
  cursor: pointer
}

.in-btn {
  padding: 8px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600
}

.in-btn-primary {
  background: #4096ff;
  color: #fff
}

.in-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px
}

.in-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px
}

.in-multi-select {
  position: relative;
  width: 140px;
  font-size: 14px;
}

.in-select-toggle {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.in-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 10;
  display: none;
  border-radius: 4px;
  margin-top: 4px;
}

/* #in-categorys-options label, */
.in-options label {
  display: flex !important;
  align-items: center !important;
  padding: 5px !important;
  cursor: pointer !important;
  flex-direction: row !important;
  font-size: 12px !important;
  background: #fff;
}

#in-categorys-options label input[type="checkbox"],
.in-options label input[type="checkbox"] {
  margin-right: 8px !important;
  margin-left: 0 !important;
  opacity: 1 !important;
  width: 16px !important;
  height: 16px !important;
  position: relative !important;
  display: block !important;
  flex-shrink: 0 !important;
  order: -1 !important;
}

#in-categorys-options label span,
.in-options label span {
  flex: 1 !important;
}

.in-options label:hover {
  background-color: #f0f0f0;
}

.in-selected-text {
  margin-top: 6px;
  color: #333;
  font-size: 13px;
}

.in-row-input {
  width: 60px;
  line-height: 25px;
  padding: 0 !important;
  margin: 0;
  margin-top: -3px !important;
}

.in-item-title {
  font-weight: 600;
}

.in-item-time {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.in-btn-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: #ff6666;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.in-btn-delete:hover {
  background: #e04c4c;
}

.in-item {
  position: relative;
  padding: 12px 48px 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}

/* Professional Label System */
.in-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  white-space: nowrap;
}

.in-label-primary {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
}

.in-label-secondary {
  background: var(--color-secondary-light);
  color: var(--color-secondary-hover);
  border: 1px solid var(--color-secondary);
}

.in-label-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.in-label-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.in-label-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.in-label-nice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  background: var(--color-secondary);
  color: white;
  border-radius: var(--radius-base);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.in-label-nice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-warning);
}

.in-label-nice:hover {
  background: var(--color-secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-base);
}

.in-taiji-use-btn {
  padding: 4px 10px;
  font-size: 12px;
  background-color: #cc0000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  margin-left: 0px;
}

/* 按钮容器 */
.in-tips-button-container {
  display: inline-block;
  position: relative;
  margin: 0;
}

/* 小按钮风格 */
.in-tips-use-btn {
  padding: 4px 30px 4px 10px;
  /* 小内边距 */
  font-size: 13px;
  /* 小字体 */
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  /* 小圆角 */
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-left: 0;
  position: relative;
  overflow: hidden;
}

/* 悬停效果 */
.in-tips-use-btn:hover {
  background-color: #ff0000;
  /* 可稍微亮一点 */
  transform: translateY(-1px);
}

/* 按下效果 */
.in-tips-use-btn:active {
  transform: translateY(1px);
}

/* 问号 */
.in-tips-question-mark {
  position: absolute;
  top: 50%;
  right: 6px;
  /* 紧贴按钮右边 */
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1.5px solid white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.in-tips-question-mark:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

/* Tooltip */
.in-tips-tooltip {
  word-break: break-word;
  position: fixed !important;
  right: 30px !important;
  top: auto;
  transform: none !important;
  white-space: normal !important;
  transform: translateY(-100%);
  background-color: rgba(30, 30, 40, 0.95);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 350px !important;
  width: max-content;
  text-align: right;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
  white-space: normal;
  word-break: break-word;
}

/* Tooltip 小箭头 */
/* .in-tips-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 6px;
  border-width: 6px 4px 0 4px;
  border-style: solid;
  border-color: rgba(30, 30, 40, 0.95) transparent transparent transparent;
} */

/* 显示 tooltip */
.in-tips-button-container:hover .in-tips-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-110%);
}

/* .in-range-container {
  width: 135px;
  font-family: Arial, sans-serif;
  margin: 0;
  position: absolute;
  background: #fff;
  z-index: 9999999;
} */

.in-range-container {
  display: none;
  width: 140px;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 9999999;
}

.in-input-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.in-input {
  width: 60px;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 4px;
  text-align: center;
  font-size: 12px;
}

.in-input-separator {
  margin: 0 5px;
  line-height: 24px;
  color: #666;
}

.in-slider-container {
  position: relative;
  height: 30px;
  margin: 10px 0;
}

.in-slider-track {
  position: absolute;
  top: 14px;
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
}

.in-slider-range {
  position: absolute;
  top: 14px;
  height: 4px;
  background-color: #20c0c0;
  border-radius: 2px;
  left: 0%;
  width: 100%;
}

.in-slider-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: white;
  border: 2px solid #20c0c0;
  border-radius: 50%;
  cursor: pointer;
  top: 5px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.in-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: #666;
}

.in-value-tooltip {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #20c0c0;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  display: none;
}

.in-slider-thumb:hover .in-value-tooltip {
  display: block;
}


.in-log-inner {
  position: relative;
  height: 1000px;
}


.in-log-entry {
  border-left: 4px solid #4a90e2;
  margin-bottom: 5px;
  border-radius: 6px;
}

/* */


.in-log-body {
  background: #f8f8f8;
  padding: 6px;
  border-radius: 6px;
}

.in-log-message {
  font-weight: bold;
  color: #333;
  word-wrap: break-word;
  white-space: normal;
}

.in-log-timestamp {
  font-size: 0.85rem;
  color: #888;
  margin-top: 3px;
}

/* 记录表格样式 */
.in-record-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  margin-top: var(--space-4);
  font-family: var(--font-family-base);
}

.in-record-table th,
.in-record-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-normal);
}

.in-record-table th {
  background: var(--color-gray-50);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-800);
  border-bottom: 2px solid var(--color-gray-200);
}

.in-record-table tbody tr {
  transition: var(--transition-fast);
}

.in-record-table tbody tr:nth-child(even) {
  background: var(--color-gray-50);
}

.in-record-table tbody tr:hover {
  background: var(--color-primary-light);
}

.in-record-table tbody tr:last-child td {
  border-bottom: none;
}

.in-creator-btn {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  padding: 10px 10px 0px 10px;
}

.in-import-panel {
  position: absolute;
  top: 200px;
  right: 100px;
  max-height: 80vh;
  overflow-y: auto;
  width: 330px;
  font-family: system-ui, sans-serif;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  z-index: 99999;
}

.in-import-btn-container {
  position: relative;
  z-index: 1;
  padding: 10px;
  background: #fff;
  display: flex;
  gap: 10px;
  width: 100%;
}

.in-import-btn-container button {
  flex: 1;
  /* = 宽度自动平均分，即 50% */
  /* 其它按钮样式示例 */
  padding: 5px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

#in-targeted {
  width: 280px !important;
}

#in-targeted .in-form-group>label {
  padding: 4px 8px;
  font-size: 14px;
  width: 100px;
  min-width: 100px;
}

#in-creator-add {
  position: absolute;
  z-index: 9999;
  background: #fff;
  right: 500px;
  top: 70px;
}


#in-select-qty {
  position: absolute;
  z-index: 99;
  font-size: 12px;
  padding: 0px 5px 0px 5px;
  margin-top: -5px;
}

#in-creator-manage {
  position: fixed;
  top: 60px;
  right: 490px;
  max-height: 610px;
  overflow-y: auto;
  width: min(380px, calc(100vw - 30px));
  max-width: 380px;
  z-index: 99999;
  padding: 15px;
  background-color: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  box-sizing: border-box;
}

.in-creator-img {
  width: 60px;
  height: 60px;
  object-fit: scale-down;
}

.in-creator-name {
  line-height: 60px;
}

.in-creator-th-w {
  padding: 5px;
  margin: 0;
}

.in-close-btn {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
}

.in-creator-checkbox {
  width: 30px !important;
  margin: 0;
  text-align: center;
}


#in-select-creator-qty {
  position: absolute;
  z-index: 99;
  font-size: 12px;
  padding: 0px 5px 0px 5px;
  margin-top: -5px;
}

.in-clean-dialog {
  width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  font-family: "Inter", sans-serif;
  color: #333;
  z-index: 999999;
  position: absolute;
  right: 60px;
  top: 200px;
}

.in-dialog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #111;
  text-align: center;
}

.in-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.in-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.in-field span {
  font-size: 14px;
  color: #444;
}

.in-field input,
.in-field select {
  width: 140px;
  padding: 6px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
}

.in-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.in-dialog-footer button {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-cancel {
  background: #f1f1f1;
  color: #333;
}

.btn-confirm {
  background: #4b7bff;
  color: #fff;
}