* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-100: #3F51B5;
  --primary-200: #757de8;
  --primary-300: #dedeff;
  
  --accent-100: #2196F3;
  --accent-200: #003f8f;

  --primary-color: var(--primary-100);
  --primary-hover: var(--primary-200);
  --primary-active: var(--accent-200);

  --success: #4CAF50;
  --warning: #f59e0b;
  --error: #F44336;
  
  --success-color: var(--success);
  --success-hover: #43A047;
  
  --warning-color: var(--warning);
  --warning-hover: #d97706;
  
  --error-color: var(--error);
  --error-hover: #D32F2F;

  --text-100: #333333;
  --text-200: #5c5c5c;
  --text-300: #64748b;
  --text-400: #94a3b8;
  
  --bg-100: #FFFFFF;
  --bg-200: #f5f5f5;
  --bg-300: #cccccc;
  --bg-400: #e0e0e0;

  --bg-primary: var(--bg-100);
  --bg-secondary: var(--bg-200);
  --bg-tertiary: #f1f5f9;
  --bg-elevated: var(--bg-100);
  --bg-surface: #f8fafc;

  --text-primary: var(--text-100);
  --text-secondary: var(--text-200);
  --text-tertiary: var(--text-300);
  --text-quaternary: var(--text-400);
  --text-disabled: #94a3b8;

  --border-color: var(--bg-300);
  --border-color-light: #e2e8f0;
  --border-color-lighter: #f1f5f9;

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

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-family-code: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas,
    'Courier New', monospace;

  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-xxl: 24px;

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

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  --radius-sm: 4px;
  --radius-base: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-xxl: 24px;

  --duration-instant: 0.1s;
  --duration-fast: 0.2s;
  --duration-base: 0.3s;
  --duration-slow: 0.5s;

  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active: #334155;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

code {
  font-family: var(--font-family-code);
  background-color: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--error-color);
}

pre > code {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

pre {
  font-family: var(--font-family-code);
  background-color: var(--bg-tertiary);
  padding: var(--spacing-md);
  border-radius: var(--radius-base);
  overflow-x: auto;
  border: 1px solid var(--border-color-light);
}

#root {
  width: 100%;
  height: 100vh;
}

.ant-layout {
  background-color: var(--bg-primary);
}

.ant-layout-header {
  background-color: var(--bg-100);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.ant-layout-content {
  background-color: var(--bg-secondary);
}

.ant-btn {
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-in-out);
  font-weight: var(--font-weight-medium);
}

.ant-btn:hover {
  transform: translateY(-1px);
}

.ant-btn:active {
  transform: translateY(0);
}

.ant-btn-primary {
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-color: var(--primary-100);
  color: white;
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.2);
}

.ant-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-200), var(--primary-100));
  border-color: var(--primary-200);
  box-shadow: 0 6px 16px rgba(63, 81, 181, 0.3);
}

.ant-btn-primary:active {
  background: var(--primary-100);
  border-color: var(--primary-100);
}

.ant-input {
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-in-out);
  border: 1px solid var(--bg-300);
  background-color: var(--bg-100);
  padding: 0 12px;
  font-size: var(--font-size-base);
  height: 40px;
  box-sizing: border-box;
  line-height: 38px;
}

.ant-input-affix-wrapper {
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-in-out);
  border: 1px solid var(--bg-300);
  background-color: var(--bg-100);
  padding: 0 12px;
  height: 40px;
  box-sizing: border-box;
  line-height: 38px;
  display: flex;
  align-items: center;
}

.ant-input-affix-wrapper .ant-input {
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  line-height: inherit;
}

.ant-input:focus {
  border-color: var(--primary-100);
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.ant-input:hover {
  border-color: var(--primary-100);
}

.ant-input-affix-wrapper:hover {
  border-color: var(--primary-100);
}

.ant-input-affix-wrapper-focused {
  border-color: var(--primary-100) !important;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1) !important;
}

.ant-input-number {
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-in-out);
  border: 1px solid var(--bg-300);
  background-color: var(--bg-100);
  height: 40px;
  width: 100%;
  box-sizing: border-box;
}

.ant-input-number .ant-input-number-input {
  height: 38px;
  padding: 0 12px;
  line-height: 38px;
}

.ant-input-number:hover {
  border-color: var(--primary-100);
}

.ant-input-number-focused {
  border-color: var(--primary-100) !important;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1) !important;
}

.ant-select {
  border-radius: var(--radius-base);
}

.ant-select .ant-select-selector {
  border-radius: var(--radius-base) !important;
  border: 1px solid var(--bg-300) !important;
  background-color: var(--bg-100) !important;
  transition: all var(--duration-fast) var(--ease-in-out) !important;
  padding: 0 !important;
  font-size: var(--font-size-base) !important;
  height: 40px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

.ant-select .ant-select-selection-wrap {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
}

.ant-select .ant-select-selection-search {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin-inline-start: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.ant-select .ant-select-selection-search-input {
  height: 100% !important;
  padding: 0 12px !important;
  line-height: normal !important;
}

.ant-select .ant-select-selection-placeholder {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  line-height: normal !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  pointer-events: none !important;
}

.ant-select .ant-select-selection-item,
.ant-select-single .ant-select-selector .ant-select-selection-item,
.ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  height: 100% !important;
  line-height: normal !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
}

.ant-select .ant-select-arrow,
.ant-select .ant-select-arrow[class] {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  inset-inline-end: 12px !important;
  inset-inline-start: auto !important;
}

.ant-select .ant-select-arrow .anticon-down {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ant-select:hover .ant-select-selector {
  border-color: var(--primary-100) !important;
}

.ant-select-focused .ant-select-selector {
  border-color: var(--primary-100) !important;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1) !important;
}

.ant-input-status-error,
.ant-input-affix-wrapper-status-error {
  border-color: var(--error-color) !important;
}

.ant-input-status-error:focus,
.ant-input-affix-wrapper-status-error:focus,
.ant-input-affix-wrapper-focused.ant-input-affix-wrapper-status-error {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.ant-select-status-error .ant-select-selector {
  border-color: var(--error-color) !important;
}

.ant-select-status-error.ant-select-focused .ant-select-selector {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.ant-input-number-status-error {
  border-color: var(--error-color) !important;
}

.ant-input-number-status-error:focus,
.ant-input-number-focused.ant-input-number-status-error {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1) !important;
}

.ant-form-item {
  margin-bottom: 24px !important;
}

.ant-form-item-explain {
  margin-top: 4px !important;
  min-height: 22px !important;
  position: relative !important;
  z-index: 1 !important;
}

.ant-form-item-explain-error {
  color: var(--error-color) !important;
  font-size: var(--font-size-sm) !important;
  line-height: 22px !important;
}

.ant-modal {
  border-radius: var(--radius-lg);
}

.ant-modal-header {
  border-bottom: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--spacing-lg);
}

.ant-modal-body {
  padding: var(--spacing-lg);
}

.ant-modal-footer {
  border-top: 1px solid var(--border-color-light);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--spacing-lg);
}

.ant-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-100);
  transition: all var(--duration-fast) var(--ease-in-out);
}

.ant-card:hover {
  box-shadow: var(--shadow-base);
}

.ant-card-head {
  border-bottom: 1px solid var(--border-color-light);
  padding: var(--spacing-md) var(--spacing-lg);
}

.ant-card-body {
  padding: var(--spacing-lg);
}

.ant-alert {
  border-radius: var(--radius-base);
}

.ant-tag {
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
}

.ant-progress-line {
  border-radius: var(--radius-base);
}

.ant-list-item {
  border-radius: var(--radius-base);
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-md);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color-light);
}

.react-flow__node {
  cursor: grab;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-in-out);
  background-color: var(--bg-100);
  border-radius: var(--radius-base);
  border: 1px solid var(--border-color);
}

.react-flow__node:hover {
  box-shadow: var(--shadow-base);
  transform: translateY(-2px);
}

.react-flow__node.selected {
  box-shadow: 0 0 0 2px var(--primary-100);
  border-color: var(--primary-100);
}

.react-flow__node:active {
  cursor: grabbing;
}

.react-flow__handle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-xs);
}

.react-flow__edge-path {
  stroke-width: 2;
}

.react-flow__edge:hover .react-flow__edge-path {
  stroke: var(--primary-200) !important;
  filter: drop-shadow(0 0 3px rgba(63, 81, 181, 0.3));
}

.react-flow__edge.selected .react-flow__edge-path {
  stroke: var(--primary-color) !important;
  filter: drop-shadow(0 0 6px rgba(63, 81, 181, 0.5));
}

.react-flow__controls {
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--border-color);
  background-color: var(--bg-100);
}

.react-flow__controls-button {
  border-radius: 4px;
  transition: all var(--duration-fast) var(--ease-in-out);
}

.react-flow__controls-button:hover {
  background-color: var(--bg-200);
}

.react-flow__minimap {
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--border-color);
  background-color: var(--bg-100);
}

.react-flow__background {
  background-color: var(--bg-200);
}

.react-flow__backgrounddots {
  fill: #cbd5e1;
}

.ant-typography {
  color: var(--text-primary);
}

.ant-typography-secondary {
  color: var(--text-secondary);
}

.ant-message {
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
}

.ant-form-item-label > label {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.ant-form-item-explain {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

.ant-divider {
  border-color: var(--border-color-light);
}

.ant-spin {
  color: var(--primary-color);
}

.ant-spin-dot-item {
  background-color: var(--primary-color);
}

.ant-layout-sider {
  background-color: var(--bg-primary);
}

.ant-tabs-tab {
  transition: all var(--duration-fast) var(--ease-in-out);
}

.ant-tabs-tab:hover {
  color: var(--primary-100);
}

.ant-tabs-tab-active {
  font-weight: var(--font-weight-semibold);
}

.ant-tabs-content-holder {
  flex: 1;
}

.ant-tabs-content {
  height: 100%;
}

.ant-tabs-tabpane {
  height: 100%;
}

.ant-table-wrapper .ant-spin-nested-loading,
.ant-table-wrapper .ant-spin-container,
.ant-table-wrapper .ant-table,
.ant-table-wrapper .ant-table-container,
.ant-table-wrapper .ant-table-content,
.ant-table-wrapper .ant-table-body {
  height: 100% !important;
}

.ant-table-wrapper table {
  height: 100% !important;
}

.ant-table-wrapper .ant-table-tbody {
  height: calc(100% - 55px) !important;
}

.ant-table-wrapper .ant-table-placeholder {
  height: 100% !important;
}

.ant-table-wrapper .ant-table-placeholder > td {
  vertical-align: middle !important;
  padding: 0 !important;
}

.ant-empty-normal {
  margin: 0 auto !important;
}

.ant-menu-item {
  transition: all var(--duration-fast) var(--ease-in-out);
}

.ant-menu-item:hover {
  background-color: var(--bg-200);
}

.ant-menu-item-selected {
  background-color: var(--primary-300) !important;
  color: var(--primary-100) !important;
}

.ant-table {
  border-radius: var(--radius-base);
}

.ant-table-thead > tr > th {
  background-color: var(--bg-tertiary);
  font-weight: var(--font-weight-semibold);
}

.ant-table-tbody > tr:hover > td {
  background-color: var(--bg-200);
}

.ant-dropdown-menu {
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color-light);
}

.ant-dropdown-menu-item:hover {
  background-color: var(--bg-200);
}

.ant-popover {
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
}

.ant-tooltip {
  border-radius: var(--radius-sm);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

.custom-scrollbar::-webkit-scrollbar-corner {
  background: transparent;
}

/* ==================== Property Panel Enhanced Styles ==================== */
.property-panel-form {
  width: 100%;
  overflow: hidden;
}

.property-panel-divider {
  margin: var(--spacing-lg) 0 !important;
}

.property-panel-divider .ant-divider-inner-text {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-panel-divider .ant-divider-inner-text .anticon {
  color: var(--primary-100);
}

.property-panel-divider::before,
.property-panel-divider::after {
  border-color: var(--border-color-lighter) !important;
}

.property-panel-btn-group {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--bg-surface);
  border-radius: var(--radius-base);
  border: 1px solid var(--border-color-lighter);
}

.property-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-color-light);
  background: var(--bg-100);
  color: var(--text-primary);
  transition: all var(--duration-fast);
}

.property-panel-btn:hover {
  border-color: var(--primary-100);
  color: var(--primary-100);
  background: var(--primary-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.property-panel-btn-primary {
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  color: white;
  border: none;
}

.property-panel-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-200), var(--primary-100));
  color: white;
  box-shadow: 0 4px 12px rgba(63, 81, 181, 0.3);
}

.property-panel-model-card {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-tertiary)) !important;
  border: 1px solid var(--border-color-light) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xs) !important;
  margin-bottom: var(--spacing-lg) !important;
  transition: all var(--duration-fast);
}

.property-panel-model-card:hover {
  border-color: var(--primary-100) !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-1px);
}

.property-panel-model-card .ant-card-body {
  padding: var(--spacing-md) !important;
}

/* ===== 模型配置统一面板 ===== */
.property-panel-model-config {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  transition: all var(--duration-fast);
}
.property-panel-model-config:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-xs);
}

.property-panel-model-config-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color-lighter);
}
.property-panel-model-config-header .anticon {
  color: var(--primary-100);
  font-size: 16px;
}

.property-panel-model-config-body {
  padding: 12px 16px;
}

.property-panel-model-config-body .property-panel-form-item {
  margin-bottom: 0 !important;
}

/* ===== 折叠触发器行 ===== */
.property-panel-model-config-collapse {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 4px;
  cursor: pointer;
  user-select: none;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast);
  position: relative;
  z-index: 0;
}
.property-panel-model-config-collapse:hover {
  color: var(--primary-100);
}
.property-panel-model-config-collapse-arrow {
  transition: transform var(--duration-fast);
  flex-shrink: 0;
}
.property-panel-model-config-collapse-arrow.expanded {
  transform: rotate(90deg);
}
.property-panel-model-config-collapse-line {
  flex: 1;
  height: 1px;
  background: var(--border-color-lighter);
  margin-left: 8px;
}

/* ===== 可折叠参数区域 ===== */
.property-panel-model-config-params {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0;
  position: relative;
  z-index: 1;
}
.property-panel-model-config-params.expanded {
  max-height: 400px;
  opacity: 1;
  margin-top: 8px;
}

/* ===== 参数项 (label 左 + input 右) ===== */
.property-panel-model-config-param {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-base);
  transition: background var(--duration-fast);
}
.property-panel-model-config-param:hover {
  background: var(--bg-200);
}
.property-panel-model-config-param + .property-panel-model-config-param {
  margin-top: 2px;
}
.property-panel-model-config-param-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ===== 自定义微调输入框（± stepper 包裹） ===== */
.property-panel-model-config-param-input-wrapper {
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--border-color-lighter);
  border-radius: 10px;
  background: var(--bg-100);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-panel-model-config-param-input-wrapper:hover {
  border-color: var(--primary-100);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.06);
}
.property-panel-model-config-param-input-wrapper:focus-within {
  border-color: var(--primary-100);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15);
}
.property-panel-model-config-param-stepper {
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
  user-select: none;
}
.property-panel-model-config-param-stepper:hover {
  background: var(--bg-200);
  color: var(--primary-100);
}
.property-panel-model-config-param-stepper:active {
  background: var(--bg-300);
  color: var(--primary-200);
}
.property-panel-model-config-param-stepper + .property-panel-model-config-param-stepper {
  border-left: 1px solid var(--border-color-lighter);
}
.property-panel-model-config-param-input {
  width: 68px;
  height: 100%;
  padding: 0 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--text-primary);
  text-align: center;
  outline: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
  letter-spacing: 0.02em;
}
.property-panel-model-config-param-input::-webkit-inner-spin-button,
.property-panel-model-config-param-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== LLM Config Selector Dropdown ===== */
.llm-config-dropdown-inner {
  display: flex;
  flex-direction: column;
}

.llm-config-dropdown-inner .ant-select-item-group {
  padding: 8px 12px 4px !important;
  border-top: 1px solid transparent;
  margin-top: 0 !important;
}

.llm-config-dropdown-inner .ant-select-item-group:not(:first-of-type) {
  border-top-color: #e8e8e8;
  margin-top: 4px !important;
  padding-top: 12px !important;
}

.llm-config-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.llm-config-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.llm-config-group-name {
  flex: 1;
}

.llm-config-group-count {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-quaternary);
  background: var(--bg-200);
  padding: 1px 6px;
  border-radius: 8px;
  line-height: 16px;
}

.llm-config-dropdown-inner .ant-select-item {
  padding: 6px 12px !important;
  border-radius: 6px !important;
  margin: 1px 6px !important;
  min-height: auto !important;
  transition: background var(--duration-fast) !important;
}

.llm-config-dropdown-inner .ant-select-item-option-active {
  background: var(--bg-tertiary) !important;
}

.llm-config-dropdown-inner .ant-select-item-option-selected {
  background: rgba(63, 81, 181, 0.08) !important;
  font-weight: 500 !important;
}

.llm-config-dropdown-inner .ant-select-item-option-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--primary-100);
}

.llm-config-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.llm-config-option-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.llm-config-option-star {
  color: #fadb14;
  font-size: 12px;
  flex-shrink: 0;
}

.llm-config-option-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llm-config-option-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.llm-config-option-star-label {
  color: #fadb14;
  font-size: 12px;
}

.llm-config-dropdown-divider {
  margin: 4px 0 !important;
  border-color: var(--border-color-lighter) !important;
}

.llm-config-dropdown-footer {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
}

.llm-config-dropdown-footer-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px !important;
  color: var(--text-tertiary) !important;
  border-radius: 6px !important;
  height: 30px !important;
  padding: 0 10px !important;
  transition: all var(--duration-fast) !important;
}

.llm-config-dropdown-footer-btn:hover {
  color: var(--primary-100) !important;
  background: rgba(63, 81, 181, 0.06) !important;
}

.property-panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  margin-right: 8px;
  margin-bottom: 8px;
}

.property-panel-tag-provider-openai {
  background: #dbeafe;
  color: #1e40af;
}

.property-panel-tag-provider-anthropic {
  background: #ffedd5;
  color: #c2410c;
}

.property-panel-tag-provider-qwen {
  background: #dcfce7;
  color: #166534;
}

.property-panel-tag-provider-ollama {
  background: #f3e8ff;
  color: #6b21a8;
}

.property-panel-tag-default {
  background: #fef3c7;
  color: #92400e;
}

.property-panel-tag-model {
  background: #e2e8f0;
  color: #475569;
}

.property-panel-meta {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color-lighter);
}

.property-panel-textarea {
  font-family: var(--font-family-code) !important;
  font-size: var(--font-size-sm) !important;
  line-height: 1.6 !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color-light) !important;
  border-radius: var(--radius-base) !important;
  transition: all var(--duration-fast) !important;
}

.property-panel-textarea:focus {
  background: var(--bg-100) !important;
  border-color: var(--primary-100) !important;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1) !important;
}

.property-panel-textarea:hover {
  border-color: var(--primary-100) !important;
}

.property-panel-form-item {
  margin-bottom: var(--spacing-lg) !important;
}

.property-panel-form-item .ant-form-item-label > label {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.property-panel-form-item .ant-input,
.property-panel-form-item .ant-select-selector {
  border-radius: var(--radius-base) !important;
  transition: all var(--duration-fast) !important;
}

.property-panel-form-item .ant-input:hover,
.property-panel-form-item .ant-select-selector:hover {
  border-color: var(--primary-100) !important;
}

.property-panel-form-item .ant-input:focus,
.property-panel-form-item .ant-select-focused .ant-select-selector {
  border-color: var(--primary-100) !important;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1) !important;
}

.property-panel-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
  color: var(--primary-100);
  padding: 4px 0;
  transition: all var(--duration-fast);
}

.property-panel-link-btn:hover {
  color: var(--primary-200);
}

.property-panel-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-base);
  border: 1px solid var(--border-color-lighter);
}

.property-panel-switch-label {
  flex: 1;
}

.property-panel-switch-title {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  display: block;
  font-size: var(--font-size-base);
}

.property-panel-switch-desc {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}

.property-panel-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color-light);
}

.property-panel-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.property-panel-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.property-panel-modal-close:hover {
  background: var(--bg-200);
}

.property-panel-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color-light);
  margin-bottom: 20px;
}

.property-panel-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-200);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.property-panel-tab:hover {
  color: var(--primary-100);
}

.property-panel-tab.active {
  color: var(--primary-100);
  border-bottom-color: var(--primary-100);
}

.property-panel-template-card {
  padding: 16px;
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-base);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.property-panel-template-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-sm);
}

.property-panel-template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.property-panel-template-card-title {
  font-weight: 600;
  font-size: 14px;
}

.property-panel-template-card-desc {
  font-size: 12px;
  color: var(--text-300);
  margin-bottom: 8px;
}

.property-panel-template-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.property-panel-preview-section {
  margin-bottom: 16px;
}

.property-panel-preview-section:last-child {
  margin-bottom: 0;
}

.property-panel-preview-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.property-panel-preview-box {
  background: var(--bg-surface);
  border-radius: var(--radius-base);
  padding: 12px;
  max-height: 150px;
  overflow-y: auto;
}

.property-panel-preview-box.blue {
  background: #e6f7ff;
}

.property-panel-preview-box pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
}

.property-panel-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--bg-100);
  padding: 12px 24px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-panel-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== 统一面板容器 ===== */
.property-panel-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.2s;
}
.property-panel-section:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-xs);
}
.property-panel-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color-lighter);
}
.property-panel-section-head .anticon {
  color: var(--primary-100);
  font-size: 16px;
}
.property-panel-section-body {
  padding: 12px 16px;
}
.property-panel-section-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-color-lighter);
  background: var(--bg-tertiary);
}

/* ===== 面板内标签 ===== */
.property-panel-label-inline {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== 子分区（工具与集成面板内部） ===== */
.property-panel-subsection {
  padding: 6px 0;
}
.property-panel-subsection + .property-panel-subsection {
  margin-top: 2px;
  border-top: 1px solid var(--border-color-lighter);
  padding-top: 10px;
}
.property-panel-subsection-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.property-panel-subsection-label .anticon {
  color: var(--text-tertiary);
  font-size: 13px;
}

.property-panel-toast.success {
  border-left: 3px solid var(--success);
}

.property-panel-toast.warning {
  border-left: 3px solid var(--warning);
}

.property-panel-toast.error {
  border-left: 3px solid var(--error);
}

/* ============= FINAL FIX FOR PROPERTY PANEL ============= */

/* Force all elements to fit within container */
.property-panel-form {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.property-panel-form * {
  box-sizing: border-box !important;
}

/* Fix Select component - ABSOLUTE FIX */
.property-panel-form .ant-select {
  width: 100% !important;
  max-width: 100% !important;
}

.property-panel-form .ant-select .ant-select-selector {
  width: 100% !important;
  max-width: 100% !important;
}

.property-panel-form .ant-select .ant-select-selection-overflow {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* Fix Tag overflow - make sure tags fit properly */
.property-panel-form .ant-tag {
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
}

/* Fix Form.Item - COMPLETE FIX */
.property-panel-form-item {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
}

.property-panel-form-item .ant-form-item-label {
  padding-bottom: 8px !important;
  width: 100% !important;
  text-align: left !important;
}

.property-panel-form-item .ant-form-item-label > label {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  width: 100% !important;
  text-align: left !important;
}

/* Fix Form.Item control */
.property-panel-form-item .ant-form-item-control {
  width: 100% !important;
  max-width: 100% !important;
}

.property-panel-form-item .ant-form-item-control-input {
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix Input width */
.property-panel-form .ant-input,
.property-panel-form .ant-input-number,
.property-panel-form .ant-picker {
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix TextArea */
.property-panel-textarea {
  width: 100% !important;
  max-width: 100% !important;
  resize: vertical !important;
}

/* Fix Switch wrapper */
.property-panel-switch-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Fix Button group */
.property-panel-btn-group {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: wrap !important;
}

/* Fix Model card */
.property-panel-model-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Fix Form.Item extra text - FINAL FIX */
.property-panel-form .ant-form-item-extra {
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--text-tertiary) !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  width: 100% !important;
  text-align: left !important;
}

/* Fix divider alignment */
.property-panel-divider {
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 !important;
  overflow: hidden !important;
}

/* Fix Form.Item row */
.property-panel-form-item .ant-row {
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
}

/* Fix all containers */
.property-panel-form > div,
.property-panel-form > .ant-form-item,
.property-panel-form .ant-card,
.property-panel-form .ant-select-dropdown {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Ensure everything stays inside */
.property-panel-form .ant-col {
  max-width: 100% !important;
  width: 100% !important;
}

/* ============= COMPLETE FIX FOR SELECT MULTIPLE TAGS ============= */

/* Fix Select multiple mode - ensure tags show only 1 row */
.property-panel-form .ant-select-multiple .ant-select-selector {
  flex-wrap: nowrap !important;
  align-content: center !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 11px !important;
  overflow: hidden !important;
}

/* Fix selection overflow container - single row only */
.property-panel-form .ant-select-multiple .ant-select-selection-overflow {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: center !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Fix individual tag items - truncate long tags */
.property-panel-form .ant-select-multiple .ant-select-selection-item {
  margin: 0 !important;
  margin-inline-end: 4px !important;
  flex-shrink: 1 !important;
  max-width: 120px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Fix search input */
.property-panel-form .ant-select-multiple .ant-select-selection-search {
  position: relative !important;
  flex: 0 0 auto !important;
  min-width: 50px !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.property-panel-form .ant-select-multiple .ant-select-selection-search-input {
  width: 100% !important;
}

/* Fix placeholder */
.property-panel-form .ant-select-multiple .ant-select-selection-placeholder {
  position: absolute !important;
  top: 50% !important;
  left: 11px !important;
  right: 11px !important;
  transform: translateY(-50%) !important;
  width: auto !important;
  padding: 0 !important;
  line-height: normal !important;
}

/* Ensure Select component container doesn't overflow */
.property-panel-form .ant-select {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* ============= FIX FOR SIDER WIDTH ============= */

/* Ensure Sider uses the correct width - DO NOT override flex property */

/* Fix for property panel container */
.property-panel-form {
  padding-right: 0 !important;
}

/* ============= RESPONSIVE FIXES ============= */

/* Ensure all elements fit in narrow panels */
@media (max-width: 400px) {
  .property-panel-form .ant-btn {
    font-size: 12px !important;
    padding: 0 8px !important;
  }
  
  .property-panel-btn-group {
    padding: 8px !important;
  }
  
  .property-panel-form-item {
    margin-bottom: 16px !important;
  }
}

/* ============= COMPLETE FORM.ITEM FIX ============= */

/* Ensure Form.Item layout is correct */
.property-panel-form-item {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 20px !important;
  overflow: visible !important;
}

/* Fix Form.Item label - ensure proper alignment */
.property-panel-form-item .ant-form-item-label {
  padding: 0 0 8px 0 !important;
  width: 100% !important;
  text-align: left !important;
  overflow: visible !important;
}

.property-panel-form-item .ant-form-item-label > label {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  width: 100% !important;
  text-align: left !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
}

/* Fix Form.Item required mark */
.property-panel-form-item .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
  margin-right: 4px !important;
  display: inline-flex !important;
}

/* Fix Form.Item control */
.property-panel-form-item .ant-form-item-control {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

.property-panel-form-item .ant-form-item-control-input {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 40px !important;
}

/* Fix Form.Item extra text */
.property-panel-form .ant-form-item-extra {
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--text-tertiary) !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  width: 100% !important;
  text-align: left !important;
  overflow: visible !important;
}

/* Fix Form.Item error message */
.property-panel-form .ant-form-item-explain-error {
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--error-color) !important;
  width: 100% !important;
  text-align: left !important;
}

/* ============= OVERFLOW PREVENTION ============= */

/* Ensure no horizontal overflow */
.property-panel-form {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* All children should respect box-sizing */
.property-panel-form * {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Prevent text overflow */
.property-panel-form .ant-typography {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Fix Divider */
.property-panel-divider {
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Fix Card */
.property-panel-model-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Fix Button Group */
.property-panel-btn-group {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: wrap !important;
  overflow: hidden !important;
}

/* Fix Switch wrapper */
.property-panel-switch-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Fix TextArea */
.property-panel-textarea {
  width: 100% !important;
  max-width: 100% !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  font-family: var(--font-family) !important;
  font-size: var(--font-size-base) !important;
  line-height: 1.6 !important;
  background: var(--bg-100) !important;
  border: 1px solid var(--bg-300) !important;
  border-radius: var(--radius-base) !important;
  padding: 8px 12px !important;
  transition: all var(--duration-fast) !important;
}

/* Fix TextArea placeholder - match Input style */
.property-panel-textarea::placeholder {
  color: rgba(0, 0, 0, 0.25) !important;
  font-family: var(--font-family) !important;
  font-size: var(--font-size-base) !important;
  line-height: 1.6 !important;
}

.property-panel-textarea:focus {
  background: var(--bg-100) !important;
  border-color: var(--primary-100) !important;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1) !important;
  outline: none !important;
}

.property-panel-textarea:hover {
  border-color: var(--primary-100) !important;
}

/* Fix Input and InputNumber */
.property-panel-form .ant-input,
.property-panel-form .ant-input-number,
.property-panel-form .ant-picker {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Fix InputNumber wrapper */
.property-panel-form .ant-input-number {
  width: 100% !important;
}

.property-panel-form .ant-input-number-input-wrap {
  width: 100% !important;
}

/* Fix Row and Col */
.property-panel-form-item .ant-row {
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.property-panel-form .ant-col {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============= SCROLLBAR AND CONTENT AREA ============= */

/* Ensure the sider content area scrolls properly */
.ant-layout-sider-children {
  overflow: hidden !important;
}

.ant-layout-sider-children > div {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.custom-scrollbar {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* Better scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--bg-secondary) !important;
  border-radius: 4px !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--bg-300) !important;
  border-radius: 4px !important;
  transition: background 0.2s !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--text-300) !important;
}

/* ============= PRESET CARDS ============= */

.preset-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.preset-card {
  padding: 12px;
  border: 2px solid #d9d9d9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-100);
}

.preset-card:hover {
  border-color: var(--primary-100);
  background: var(--primary-300);
}

.preset-card.selected {
  border-width: 2px;
  background: var(--primary-300);
}

.preset-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.preset-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.preset-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
}

.preset-desc {
  font-size: 12px;
  color: var(--text-300);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


