/* ═══════════════════════════════════════════════════════════════
   AUTOMATION.CSS - Professional UI Redesign
   Instagram-Level Design System for Phase 7
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES - Premium Color Palette
   ═══════════════════════════════════════════════════════════════ */

   :root {
    /* Primary Brand */
    --auto-primary: #6D55D6;
    --auto-primary-hover: #5D46BF;
    --auto-primary-light: #ECE6FA;
    --auto-primary-dark: #5D46BF;
  
    /* Secondary */
    --auto-secondary: #645D83;
    --auto-secondary-light: #EEEAF7;
  
    /* Success */
    --auto-success: #10b981;
    --auto-success-light: #d1fae5;
    --auto-success-dark: #059669;
  
    /* Danger */
    --auto-danger: #ef4444;
    --auto-danger-light: #fee2e2;
    --auto-danger-hover: #dc2626;
  
    /* Warning */
    --auto-warning: #f59e0b;
    --auto-warning-light: #fef3c7;
  
    /* Neutral */
    --auto-bg: #F4F1FB;
    --auto-card: #ffffff;
    --auto-border: #E6E0F2;
    --auto-border-light: #EFEBF7;
  
    /* Text */
    --auto-text-primary: #1D1836;
    --auto-text-secondary: #645D83;
    --auto-text-muted: #9891B4;
  
    /* Shadows */
    --auto-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --auto-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --auto-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --auto-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --auto-shadow-glow: 0 0 0 3px rgba(109, 85, 214, 0.18);
  
    /* Transitions */
    --auto-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --auto-transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --auto-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
    /* Radius */
    --auto-radius-sm: 6px;
    --auto-radius-md: 10px;
    --auto-radius-lg: 14px;
    --auto-radius-xl: 18px;
    --auto-radius-full: 9999px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     TAB CONTAINER - Full Height Layout
     ═══════════════════════════════════════════════════════════════ */
  
  #automation-tab {
    padding: 16px;
    padding-bottom: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 140px);
    box-sizing: border-box;
    background: var(--auto-bg);
    scroll-behavior: smooth;
  }
  
  #automation-tab.tab-content {
    display: none;
  }
  
  #automation-tab.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ═══════════════════════════════════════════════════════════════
     SECTION BASE - Premium Card Style
     ═══════════════════════════════════════════════════════════════ */
  
  .automation-section {
    background: var(--auto-card);
    border-radius: var(--auto-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--auto-shadow-md);
    border: 1px solid var(--auto-border-light);
    position: relative;
    z-index: 1;
    transition: box-shadow var(--auto-transition-normal);
  }
  
  .automation-section:hover {
    box-shadow: var(--auto-shadow-lg);
  }
  
  /* ═══════════════════════════════════════════════════════════════
     REVAMP: Three-Zone Architecture Styling
     ═══════════════════════════════════════════════════════════════ */
  
  /* Primary Zone: Recording (Prominent) */
  .automation-zone-primary {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid var(--auto-primary-light);
    position: relative;
  }
  
  .automation-zone-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--auto-primary), #6D55D6, var(--auto-primary));
    border-radius: var(--auto-radius-lg) var(--auto-radius-lg) 0 0;
  }
  
  /* Section Specific Spacing */
  #recording-section {
    margin-bottom: 16px;
  }
  
  #skill-library-section {
    margin-top: 0;
  }
  
  #execution-section,
  #rollback-section {
    margin-top: 20px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     REVAMP: Quick Stats Bar
     ═══════════════════════════════════════════════════════════════ */
  
  .quick-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--auto-primary-light) 0%, #e0e7ff 100%);
    border-radius: var(--auto-radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--auto-border);
  }
  
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  
  .stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--auto-primary);
    letter-spacing: -0.02em;
  }
  
  .stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--auto-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     REVAMP V2: Recording States - Professional Design
     ═══════════════════════════════════════════════════════════════ */
  
  /* IDLE STATE - Hero button design */
  .recording-idle-state {
    padding: 24px 16px;
  }
  
  .recording-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .btn-record-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  }
  
  .btn-record-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  }
  
  .btn-record-hero:active {
    transform: translateY(0);
  }
  
  .record-icon-wrapper {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .record-icon-wrapper svg {
    width: 14px;
    height: 14px;
    animation: recordPulse 1.5s ease-in-out infinite;
  }
  
  @keyframes recordPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
  }
  
  .recording-hint {
    margin-top: 16px;
    font-size: 13px;
    color: var(--auto-text-secondary);
    max-width: 280px;
  }
  
  /* ACTIVE STATE - Recording in progress */
  .recording-active-state {
    padding: 20px 16px;
    text-align: center;
  }
  
  .recording-live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 20px;
  }
  
  .live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1s ease-in-out infinite;
  }
  
  @keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
  }
  
  .live-text {
    font-size: 11px;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.1em;
  }
  
  .recording-timer {
    font-size: 24px;
    font-weight: 700;
    color: var(--auto-text-primary);
    font-variant-numeric: tabular-nums;
  }
  
  .recording-stats-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--auto-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
  }
  
  .stat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .stat-circle .stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--auto-primary);
    line-height: 1;
    transition: transform 0.2s ease;
  }
  
  .stat-circle .stat-number.pulse {
    animation: numberPulse 0.3s ease;
  }
  
  @keyframes numberPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #10b981; }
    100% { transform: scale(1); }
  }
  
  .stat-circle .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--auto-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .recording-status-text {
    font-size: 13px;
    color: var(--auto-text-muted);
  }
  
  .recording-controls-active {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  
  .btn-stop-recording {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  }
  
  .btn-stop-recording:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  }
  
  .btn-cancel-recording {
    padding: 12px 20px;
    background: transparent;
    color: var(--auto-text-secondary);
    border: 1px solid var(--auto-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .btn-cancel-recording:hover {
    background: var(--auto-secondary-light);
    border-color: var(--auto-secondary);
  }
  
  /* GENERATING STATE - Professional spinner */
  .recording-generating-state {
    padding: 32px 16px;
    text-align: center;
  }
  
  .generating-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
  }
  
  .generating-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--auto-primary-light);
    border-top-color: var(--auto-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .generating-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .generating-rings .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid var(--auto-primary);
    opacity: 0;
    animation: ringPulse 2s ease-out infinite;
  }
  
  .ring-1 {
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    animation-delay: 0s;
  }
  
  .ring-2 {
    width: 65px;
    height: 65px;
    margin: -32.5px 0 0 -32.5px;
    animation-delay: 0.4s;
  }
  
  .ring-3 {
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    animation-delay: 0.8s;
  }
  
  @keyframes ringPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
  }
  
  .generating-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
  }
  
  .generating-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--auto-text-primary);
  }
  
  .generating-subtitle {
    font-size: 14px;
    color: var(--auto-text-secondary);
  }
  
  .generating-progress {
    height: 6px;
    background: var(--auto-secondary-light);
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .generating-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--auto-primary), #6D55D6);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: progressShimmer 1.5s ease-in-out infinite;
  }
  
  @keyframes progressShimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
  }
  
  /* Legacy compatibility - hide old elements */
  .recording-idle-hint[style*="display: none"],
  .recording-status[style*="display: none"],
  .recording-preview[style*="display: none"] {
    display: none !important;
  }
  
  /* Section Header */
  .automation-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--auto-border-light);
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .automation-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--auto-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .automation-section h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--auto-primary), var(--auto-primary-dark));
    border-radius: 2px;
  }
  
  .automation-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--auto-text-secondary);
    margin: 12px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     BUTTONS - Premium Button System
     ═══════════════════════════════════════════════════════════════ */
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--auto-radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--auto-transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--auto-transition-fast);
  }
  
  .btn:hover::before {
    opacity: 1;
  }
  
  .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
  }
  
  .btn:active:not(:disabled) {
    transform: scale(0.98);
  }
  
  /* Primary Button - Gradient */
  .btn-primary {
    background: linear-gradient(135deg, var(--auto-primary) 0%, var(--auto-primary-hover) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  }
  
  .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--auto-primary-hover) 0%, var(--auto-primary-dark) 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
  }
  
  .btn-primary:focus {
    box-shadow: var(--auto-shadow-glow), 0 2px 8px rgba(99, 102, 241, 0.3);
  }
  
  /* Secondary Button */
  .btn-secondary {
    background: var(--auto-secondary-light);
    color: var(--auto-text-primary);
    border: 1px solid var(--auto-border);
  }
  
  .btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #cbd5e1;
  }
  
  /* Danger Button */
  .btn-danger {
    background: linear-gradient(135deg, var(--auto-danger) 0%, var(--auto-danger-hover) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  }
  
  .btn-danger:hover:not(:disabled) {
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
  }
  
  /* Icon Button */
  .btn-icon {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--auto-border);
    color: var(--auto-text-secondary);
  }
  
  .btn-icon:hover:not(:disabled) {
    background: var(--auto-secondary-light);
    color: var(--auto-text-primary);
    border-color: #cbd5e1;
  }
  
  .btn-icon svg {
    width: 18px;
    height: 18px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     RECORDING SECTION - Professional Recording UI
     ═══════════════════════════════════════════════════════════════ */
  
  .recording-controls {
    display: flex;
    gap: 10px;
  }
  
  /* Recording Status Bar */
  .recording-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    border: 1px solid #fde047;
    border-radius: var(--auto-radius-md);
    margin-bottom: 16px;
    animation: statusPulse 2s ease-in-out infinite;
  }
  
  @keyframes statusPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  
  .recording-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .recording-dot {
    width: 10px;
    height: 10px;
    background: var(--auto-danger);
    border-radius: 50%;
    animation: recordPulse 1s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  
  @keyframes recordPulse {
    0% {
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
      transform: scale(1.1);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
      transform: scale(1);
    }
  }
  
  #recording-status-text {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
  }
  
  /* Generating Skill State - Green theme for success */
  .recording-status.generating {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #22c55e;
    animation: generatingPulse 1.5s ease-in-out infinite;
  }
  
  .recording-status.generating #recording-status-text {
    color: #166534;
    font-weight: 500;
  }
  
  .recording-status.generating .recording-dot {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: generatingDot 1s ease-in-out infinite;
  }
  
  @keyframes generatingPulse {
    0%, 100% {
      opacity: 1;
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
      opacity: 0.95;
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
    }
  }
  
  @keyframes generatingDot {
    0% {
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
      transform: scale(1.1);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
      transform: scale(1);
    }
  }
  
  .recording-status.generating .action-count {
    display: none;
  }
  
  .action-count {
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: var(--auto-radius-full);
  }
  
  #action-count {
    font-weight: 700;
    color: #78350f;
  }
  
  /* Recording Preview */
  .recording-preview {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;
  }
  
  .recording-preview::-webkit-scrollbar {
    width: 6px;
  }
  
  .recording-preview::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .recording-preview::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  
  .recording-preview::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  
  .action-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .action-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--auto-radius-md);
    margin-bottom: 8px;
    font-size: 13px;
    border: 1px solid var(--auto-border-light);
    transition: all var(--auto-transition-fast);
  }
  
  .action-list li:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateX(4px);
  }
  
  .action-list li .action-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--auto-primary) 0%, var(--auto-primary-hover) 100%);
    color: white;
    border-radius: var(--auto-radius-sm);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
  }
  
  .action-list li .action-text {
    flex: 1;
    color: var(--auto-text-primary);
    font-weight: 500;
  }
  
  .action-list li .action-time {
    color: var(--auto-text-muted);
    font-size: 11px;
    font-weight: 500;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     SKILL LIBRARY - Premium Grid Design
     ═══════════════════════════════════════════════════════════════ */
  
  .library-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  
  @media (max-width: 380px) {
    .library-controls {
      flex-direction: column;
      align-items: stretch;
    }
  
    .library-controls .search-input,
    .library-controls .filter-select {
      width: 100%;
    }
  }
  
  .search-input {
    padding: 10px 14px;
    border: 1px solid var(--auto-border);
    border-radius: var(--auto-radius-md);
    font-size: 13px;
    width: 160px;
    transition: all var(--auto-transition-fast);
    background: var(--auto-card);
  }
  
  .search-input:focus {
    outline: none;
    border-color: var(--auto-primary);
    box-shadow: var(--auto-shadow-glow);
  }
  
  .search-input::placeholder {
    color: var(--auto-text-muted);
  }
  
  .filter-select {
    padding: 10px 14px;
    padding-right: 36px;
    border: 1px solid var(--auto-border);
    border-radius: var(--auto-radius-md);
    font-size: 13px;
    background: var(--auto-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    cursor: pointer;
    appearance: none;
    transition: all var(--auto-transition-fast);
  }
  
  .filter-select:focus {
    outline: none;
    border-color: var(--auto-primary);
    box-shadow: var(--auto-shadow-glow);
  }
  
  /* Skill Grid */
  .skill-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 120px;
  }
  
  @media (min-width: 420px) {
    .skill-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
  }
  
  /* Empty State */
  .skill-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #d1d5db;
    border-radius: var(--auto-radius-lg);
    text-align: center;
    transition: all var(--auto-transition-normal);
  }
  
  .skill-empty-state:hover {
    border-color: var(--auto-primary);
    background: linear-gradient(135deg, var(--auto-primary-light) 0%, #f8fafc 100%);
  }
  
  .skill-empty-state svg {
    margin-bottom: 16px;
    opacity: 0.4;
    color: var(--auto-primary);
    transition: all var(--auto-transition-normal);
  }
  
  .skill-empty-state:hover svg {
    opacity: 0.7;
    transform: scale(1.1);
  }
  
  .skill-empty-state p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--auto-text-secondary);
  }
  
  .skill-empty-state .subtext {
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
    color: var(--auto-text-muted);
  }
  
  /* Skill Card - Compact Professional Design */
  .skill-card {
    background: var(--auto-card);
    border: 1px solid var(--auto-border);
    border-radius: var(--auto-radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all var(--auto-transition-normal);
    position: relative;
    overflow: hidden;
  }
  
  .skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--auto-primary), #6D55D6, #6D55D6);
    opacity: 0;
    transition: opacity var(--auto-transition-normal);
  }
  
  .skill-card:hover {
    border-color: var(--auto-primary);
    box-shadow: var(--auto-shadow-lg);
    transform: translateY(-2px);
  }
  
  .skill-card:hover::before {
    opacity: 1;
  }
  
  /* Quick Run Button - Appears on Hover */
  .skill-card-quick-run {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auto-primary) 0%, var(--auto-primary-hover) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    z-index: 2;
  }
  
  .skill-card:hover .skill-card-quick-run {
    opacity: 1;
    transform: scale(1);
  }
  
  .skill-card-quick-run:hover {
    background: linear-gradient(135deg, var(--auto-primary-hover) 0%, var(--auto-primary-dark) 100%);
    transform: scale(1.1);
  }
  
  .skill-card-quick-run svg {
    width: 14px;
    height: 14px;
  }
  
  /* Skill Card Header - Compact */
  .skill-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  
  .skill-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--auto-primary-light) 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .skill-card-icon svg {
    width: 18px;
    height: 18px;
    color: var(--auto-primary);
  }
  
  .skill-card-title-group {
    flex: 1;
    min-width: 0;
  }
  
  .skill-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--auto-text-primary);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .skill-card-category {
    font-size: 11px;
    color: var(--auto-text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  
  /* Skill Badges Row */
  .skill-card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
  
  .skill-card-badge {
    padding: 2px 7px;
    border-radius: var(--auto-radius-full);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
  }
  
  .skill-card-badge.complexity-low {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
  }
  
  .skill-card-badge.complexity-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
  }
  
  .skill-card-badge.complexity-high {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
  }
  
  .skill-card-badge.steps-badge {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: var(--auto-primary-dark);
  }
  
  .skill-card-description {
    font-size: 12px;
    color: var(--auto-text-secondary);
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Skill Stats Row - Compact */
  .skill-card-stats {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--auto-border-light);
  }
  
  .skill-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--auto-text-muted);
  }
  
  .skill-stat-value {
    font-weight: 700;
    color: var(--auto-text-secondary);
  }
  
  .skill-stat-icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
  }
  
  .skill-stat.success .skill-stat-value {
    color: var(--auto-success-dark);
  }
  
  .skill-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--auto-text-muted);
  }
  
  .skill-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
  }
  
  .skill-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--auto-border-light);
  }
  
  .skill-card-actions .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 11px;
  }
  
  /* Skill Card Compact Variant for small screens */
  @media (max-width: 380px) {
    .skill-card {
      padding: 12px;
    }
  
    .skill-card-header {
      margin-bottom: 6px;
    }
  
    .skill-card-icon {
      width: 32px;
      height: 32px;
    }
  
    .skill-card-icon svg {
      width: 16px;
      height: 16px;
    }
  
    .skill-card-name {
      font-size: 13px;
    }
  
    .skill-card-description {
      font-size: 11px;
      margin-bottom: 8px;
    }
  
    .skill-card-actions {
      margin-top: 8px;
      padding-top: 8px;
    }
  
    .skill-card-actions .btn {
      padding: 6px 8px;
      font-size: 10px;
    }
  }
  
  /* ═══════════════════════════════════════════════════════════════
     PAGINATION
     ═══════════════════════════════════════════════════════════════ */
  
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--auto-border-light);
  }
  
  #pagination-info {
    font-size: 13px;
    font-weight: 500;
    color: var(--auto-text-secondary);
  }
  
  /* ═══════════════════════════════════════════════════════════════
     EXECUTION SECTION - Professional Redesign
     ═══════════════════════════════════════════════════════════════ */
  
  .execution-zone {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fde047;
    padding: 16px;
  }
  
  .execution-zone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #eab308, #84cc16);
    border-radius: var(--auto-radius-lg) var(--auto-radius-lg) 0 0;
  }
  
  /* Execution Header */
  .execution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
  }
  
  .execution-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .execution-running-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: 16px;
  }
  
  .running-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: runningPulse 1s ease-in-out infinite;
  }
  
  @keyframes runningPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }
  
  .running-text {
    font-size: 10px;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 0.1em;
  }
  
  .execution-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--auto-text-primary);
    margin: 0;
  }
  
  .execution-header h3::before {
    display: none;
  }
  
  .btn-cancel-execution {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    color: var(--auto-text-secondary);
    border: 1px solid var(--auto-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .btn-cancel-execution:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
  }
  
  /* Progress Summary Card */
  .execution-summary-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
  }
  
  /* Circular Progress Ring */
  .execution-progress-ring {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }
  
  .execution-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
  }
  
  .progress-ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
  }
  
  .progress-ring-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* SVG gradient fallback */
  .progress-ring-fill {
    stroke: var(--auto-primary);
  }
  
  .progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  .progress-percent {
    font-size: 18px;
    font-weight: 800;
    color: var(--auto-text-primary);
  }
  
  /* Execution Summary Info */
  .execution-summary-info {
    flex: 1;
  }
  
  .execution-status-large {
    font-size: 16px;
    font-weight: 700;
    color: var(--auto-text-primary);
    margin-bottom: 4px;
  }
  
  .execution-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--auto-text-secondary);
    font-weight: 500;
  }
  
  .step-separator {
    color: var(--auto-border);
  }
  
  /* Linear Progress Bar */
  .execution-progress-linear {
    margin-bottom: 16px;
  }
  
  .progress-bar-enhanced {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  
  .progress-fill-enhanced {
    height: 100%;
    background: linear-gradient(90deg, var(--auto-primary), #6D55D6, var(--auto-success));
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressShimmer 2s linear infinite;
  }
  
  /* Legacy progress bar support */
  .execution-progress {
    margin-bottom: 20px;
  }
  
  .progress-bar {
    width: 100%;
    height: 10px;
    background: var(--auto-secondary-light);
    border-radius: var(--auto-radius-full);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--auto-primary), #6D55D6, var(--auto-success));
    background-size: 200% 100%;
    border-radius: var(--auto-radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressShimmer 2s linear infinite;
  }
  
  @keyframes progressShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }
  
  .progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--auto-text-secondary);
    font-weight: 500;
  }
  
  /* Step-by-Step Progress Container */
  .execution-steps-container {
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  
  .execution-steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--auto-border-light);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--auto-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
  }
  
  .execution-steps-header:hover {
    background: #f1f5f9;
  }
  
  .execution-steps-header .toggle-icon {
    transition: transform 0.2s ease;
  }
  
  .execution-steps-container.collapsed .toggle-icon {
    transform: rotate(-90deg);
  }
  
  .execution-steps-container.collapsed .execution-steps-list {
    display: none;
  }
  
  .execution-steps-list {
    padding: 12px;
    max-height: 180px;
    overflow-y: auto;
  }
  
  .execution-steps-list::-webkit-scrollbar {
    width: 5px;
  }
  
  .execution-steps-list::-webkit-scrollbar-thumb {
    background: var(--auto-border);
    border-radius: 3px;
  }
  
  /* Execution Step Items */
  .execution-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
  }
  
  .execution-step-item:last-child {
    margin-bottom: 0;
  }
  
  .execution-step-item.pending {
    background: #f8fafc;
    opacity: 0.6;
  }
  
  .execution-step-item.active {
    background: linear-gradient(135deg, var(--auto-primary-light) 0%, #e0e7ff 100%);
    border: 1px solid var(--auto-primary);
  }
  
  .execution-step-item.completed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  }
  
  .execution-step-item.failed {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  }
  
  .step-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
  }
  
  .execution-step-item.pending .step-icon {
    background: var(--auto-border);
    color: var(--auto-text-muted);
  }
  
  .execution-step-item.active .step-icon {
    background: var(--auto-primary);
    color: white;
    animation: stepIconPulse 1s ease-in-out infinite;
  }
  
  @keyframes stepIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
  }
  
  .execution-step-item.completed .step-icon {
    background: var(--auto-success);
    color: white;
  }
  
  .execution-step-item.failed .step-icon {
    background: var(--auto-danger);
    color: white;
  }
  
  .step-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: var(--auto-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .step-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  
  .execution-step-item.active .step-status {
    color: var(--auto-primary);
  }
  
  .execution-step-item.completed .step-status {
    color: var(--auto-success-dark);
  }
  
  .execution-step-item.failed .step-status {
    color: var(--auto-danger);
  }
  
  /* Execution Log Wrapper */
  .execution-log-wrapper {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  
  .execution-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--auto-border-light);
    font-size: 11px;
    font-weight: 600;
    color: var(--auto-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  .btn-log-clear {
    padding: 4px;
    background: transparent;
    border: none;
    color: var(--auto-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .btn-log-clear:hover {
    background: var(--auto-danger-light);
    color: var(--auto-danger);
  }
  
  .execution-log {
    max-height: 140px;
    overflow-y: auto;
    padding: 10px 14px;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    line-height: 1.5;
    background: #fafafa;
  }
  
  .execution-log::-webkit-scrollbar {
    width: 5px;
  }
  
  .execution-log::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .execution-log::-webkit-scrollbar-thumb {
    background: var(--auto-secondary);
    border-radius: 3px;
  }
  
  .execution-log-entry {
    padding: 4px 0;
    color: var(--auto-text-primary);
    border-bottom: 1px solid var(--auto-border-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  
  .execution-log-entry:last-child {
    border-bottom: none;
  }
  
  .execution-log-entry::before {
    content: '›';
    color: var(--auto-text-muted);
    font-weight: 600;
  }
  
  .execution-log-entry.success {
    color: var(--auto-success-dark);
  }
  
  .execution-log-entry.success::before {
    content: '✓';
    color: var(--auto-success);
  }
  
  .execution-log-entry.error {
    color: var(--auto-danger);
  }
  
  .execution-log-entry.error::before {
    content: '✕';
    color: var(--auto-danger);
  }
  
  .execution-log-entry.warning {
    color: var(--auto-warning);
  }
  
  .execution-log-entry.warning::before {
    content: '!';
    color: var(--auto-warning);
  }
  
  /* Execution Complete State */
  .execution-zone.completed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
  }
  
  .execution-zone.completed::after {
    background: linear-gradient(90deg, #22c55e, #16a34a, #15803d);
  }
  
  .execution-zone.completed .execution-running-badge {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
  }
  
  .execution-zone.completed .running-dot {
    background: #22c55e;
    animation: none;
  }
  
  .execution-zone.completed .running-text {
    color: #16a34a;
  }
  
  /* Execution Failed State */
  .execution-zone.failed {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
  }
  
  .execution-zone.failed::after {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
  }
  
  /* ═══════════════════════════════════════════════════════════════
     ROLLBACK SECTION
     ═══════════════════════════════════════════════════════════════ */
  
  .rollback-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .rollback-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--auto-border);
    border-radius: var(--auto-radius-md);
    transition: all var(--auto-transition-fast);
  }
  
  .rollback-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: var(--auto-warning);
  }
  
  .rollback-item-info {
    flex: 1;
  }
  
  .rollback-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--auto-text-primary);
  }
  
  .rollback-item-meta {
    font-size: 12px;
    color: var(--auto-text-muted);
    margin-top: 3px;
  }
  
  .rollback-item-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--auto-warning);
    background: var(--auto-warning-light);
    padding: 5px 10px;
    border-radius: var(--auto-radius-full);
    margin-right: 12px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     MODAL SYSTEM - Premium Overlay
     ═══════════════════════════════════════════════════════════════ */
  
  .skill-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--auto-transition-normal);
  }
  
  .skill-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .skill-modal {
    background: var(--auto-card);
    border-radius: var(--auto-radius-xl);
    width: 92%;
    max-width: 480px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--auto-transition-slow);
    box-shadow: var(--auto-shadow-xl);
  }
  
  .skill-modal-overlay.visible .skill-modal {
    transform: scale(1) translateY(0);
  }
  
  .skill-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--auto-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  }
  
  .skill-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--auto-text-primary);
    letter-spacing: -0.01em;
  }
  
  .skill-modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--auto-radius-md);
    border: none;
    background: var(--auto-secondary-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--auto-text-secondary);
    transition: all var(--auto-transition-fast);
  }
  
  .skill-modal-close:hover {
    background: var(--auto-danger-light);
    color: var(--auto-danger);
    transform: rotate(90deg);
  }
  
  .skill-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 160px);
  }
  
  .skill-modal-body::-webkit-scrollbar {
    width: 6px;
  }
  
  .skill-modal-body::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .skill-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  
  .skill-modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--auto-border-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  }
  
  /* Skill Detail Fields */
  .skill-detail-field {
    margin-bottom: 20px;
  }
  
  .skill-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--auto-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
  }
  
  .skill-detail-value {
    font-size: 15px;
    color: var(--auto-text-primary);
    font-weight: 500;
  }
  
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .skill-tag {
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--auto-primary-light) 0%, #e0e7ff 100%);
    color: var(--auto-primary);
    border-radius: var(--auto-radius-full);
    font-size: 12px;
    font-weight: 600;
  }
  
  .skill-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .skill-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--auto-radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--auto-border-light);
  }
  
  .skill-step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--auto-primary) 0%, var(--auto-primary-hover) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
  }
  
  .skill-step-content {
    flex: 1;
  }
  
  .skill-step-action {
    font-size: 14px;
    font-weight: 600;
    color: var(--auto-text-primary);
  }
  
  .skill-step-target {
    font-size: 12px;
    color: var(--auto-text-secondary);
    margin-top: 3px;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     VALIDATION MODAL
     ═══════════════════════════════════════════════════════════════ */
  
  .validation-results {
    margin-bottom: 20px;
  }
  
  .validation-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: var(--auto-radius-md);
    margin-bottom: 10px;
  }
  
  .validation-item.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
  }
  
  .validation-item.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
  }
  
  .validation-item.info {
    background: linear-gradient(135deg, #f7f4ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
  }
  
  .validation-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 12px;
  }
  
  .validation-item.error .validation-icon {
    background: var(--auto-danger);
    color: white;
  }
  
  .validation-item.warning .validation-icon {
    background: var(--auto-warning);
    color: white;
  }
  
  .validation-item.info .validation-icon {
    background: var(--auto-primary);
    color: white;
  }
  
  .validation-message {
    flex: 1;
    font-size: 14px;
    color: var(--auto-text-primary);
    font-weight: 500;
  }
  
  .validation-recommendation {
    font-size: 12px;
    color: var(--auto-text-secondary);
    margin-top: 5px;
    font-weight: 400;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     REVAMP V2: ENHANCED VALIDATION & ANOMALY STYLES
     ═══════════════════════════════════════════════════════════════ */
  
  /* Validation Section Groups */
  .validation-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--auto-border-light);
  }
  
  .validation-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  /* Adaptation item styling */
  .validation-item.adaptation {
    background: linear-gradient(135deg, #f7f4ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
  }
  
  .validation-item.adaptation .validation-icon {
    background: #6D55D6;
    color: white;
    font-size: 14px;
  }
  
  .validation-confidence {
    font-size: 11px;
    color: #5D46BF;
    margin-top: 4px;
    font-weight: 600;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
  }
  
  .validation-code {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    font-family: 'SF Mono', 'Consolas', monospace;
  }
  
  /* Anomaly item styling */
  .validation-item.anomaly {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #c4b5fd;
  }
  
  .validation-item.anomaly .validation-icon {
    background: #7c3aed;
    color: white;
  }
  
  .validation-item.anomaly-high {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
  }
  
  .validation-item.anomaly-medium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
  }
  
  .validation-values {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    font-family: 'SF Mono', 'Consolas', monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
  }
  
  /* Anomaly confirmation checkbox */
  .anomaly-confirm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border-radius: var(--auto-radius-md);
    border: 1px solid var(--auto-border);
    margin-top: 20px;
    cursor: pointer;
  }
  
  .anomaly-confirm-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--auto-primary);
  }
  
  .anomaly-confirm-checkbox span {
    font-size: 13px;
    color: var(--auto-text-secondary);
    line-height: 1.5;
  }
  
  /* Anomaly group */
  .anomaly-group {
    margin-bottom: 16px;
  }
  
  .anomaly-group:last-child {
    margin-bottom: 0;
  }
  
  /* Validation Summary Banner States */
  .validation-summary-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--auto-radius-md);
    margin-bottom: 20px;
    border-left: 4px solid;
  }
  
  .validation-summary-banner.blocked {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #dc2626;
  }
  
  .validation-summary-banner.requires-confirmation {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #d97706;
  }
  
  .validation-summary-banner.adapted {
    background: linear-gradient(135deg, #f7f4ff 0%, #ede9fe 100%);
    border-left-color: #6D55D6;
  }
  
  .validation-summary-banner.ready {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #059669;
  }
  
  .validation-summary-icon {
    font-size: 24px;
    flex-shrink: 0;
  }
  
  .validation-summary-text {
    flex: 1;
  }
  
  .validation-summary-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
  }
  
  .validation-summary-message {
    font-size: 13px;
    color: var(--auto-text-secondary);
  }
  
  /* Execution Progress Enhancement */
  .execution-progress-wrapper {
    position: relative;
  }
  
  .execution-progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--auto-secondary-light);
    border-radius: var(--auto-radius-md);
    margin-bottom: 8px;
    transition: all var(--auto-transition-fast);
  }
  
  .execution-progress-step.active {
    background: linear-gradient(135deg, var(--auto-primary-light) 0%, #e0e7ff 100%);
    border: 1px solid var(--auto-primary);
  }
  
  .execution-progress-step.completed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  }
  
  .execution-progress-step.failed {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  }
  
  .execution-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
  }
  
  .execution-progress-step.pending .execution-step-icon {
    background: var(--auto-border);
    color: var(--auto-text-muted);
  }
  
  .execution-progress-step.active .execution-step-icon {
    background: var(--auto-primary);
    color: white;
    animation: stepPulse 1s ease-in-out infinite;
  }
  
  .execution-progress-step.completed .execution-step-icon {
    background: var(--auto-success);
    color: white;
  }
  
  .execution-progress-step.failed .execution-step-icon {
    background: var(--auto-danger);
    color: white;
  }
  
  @keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }
  
  .execution-step-text {
    flex: 1;
    font-size: 13px;
    color: var(--auto-text-primary);
    font-weight: 500;
  }
  
  .execution-step-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  .execution-progress-step.active .execution-step-status {
    color: var(--auto-primary);
  }
  
  .execution-progress-step.completed .execution-step-status {
    color: var(--auto-success-dark);
  }
  
  .execution-progress-step.failed .execution-step-status {
    color: var(--auto-danger);
  }
  
  /* ═══════════════════════════════════════════════════════════════
     SAVE SKILL FORM - Premium Form Design
     ═══════════════════════════════════════════════════════════════ */
  
  .save-skill-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--auto-text-primary);
    letter-spacing: 0.01em;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    padding: 12px 14px;
    border: 1.5px solid var(--auto-border);
    border-radius: var(--auto-radius-md);
    font-size: 14px;
    transition: all var(--auto-transition-fast);
    background: var(--auto-card);
  }
  
  .form-input:focus,
  .form-textarea:focus,
  .form-select:focus {
    outline: none;
    border-color: var(--auto-primary);
    box-shadow: var(--auto-shadow-glow);
  }
  
  .form-input::placeholder,
  .form-textarea::placeholder {
    color: var(--auto-text-muted);
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
  }
  
  .form-hint {
    font-size: 12px;
    color: var(--auto-text-muted);
    margin-top: 2px;
  }
  
  /* Tag Input */
  .tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border: 1.5px solid var(--auto-border);
    border-radius: var(--auto-radius-md);
    transition: all var(--auto-transition-fast);
    background: var(--auto-card);
  }
  
  .tag-input-container:focus-within {
    border-color: var(--auto-primary);
    box-shadow: var(--auto-shadow-glow);
  }
  
  .tag-input-container input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
  }
  
  .tag-input-container input::placeholder {
    color: var(--auto-text-muted);
  }
  
  .tag-input-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--auto-primary-light) 0%, #e0e7ff 100%);
    color: var(--auto-primary);
    border-radius: var(--auto-radius-full);
    font-size: 12px;
    font-weight: 600;
  }
  
  .tag-input-tag button {
    width: 16px;
    height: 16px;
    border: none;
    background: rgba(99, 102, 241, 0.2);
    color: var(--auto-primary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    transition: all var(--auto-transition-fast);
  }
  
  .tag-input-tag button:hover {
    background: var(--auto-danger);
    color: white;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     WORKFLOW PREVIEW
     ═══════════════════════════════════════════════════════════════ */
  
  .workflow-preview {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #86efac;
    border-radius: var(--auto-radius-md);
    padding: 16px;
    margin-bottom: 20px;
  }
  
  .workflow-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .workflow-preview-header svg {
    color: var(--auto-success-dark);
  }
  
  .workflow-preview-header strong {
    color: #166534;
    font-size: 14px;
  }
  
  .workflow-preview-stats {
    font-size: 13px;
    color: #166534;
    font-weight: 500;
  }
  
  /* ═══════════════════════════════════════════════════════════════
     LOADING SPINNER - Premium Animation
     ═══════════════════════════════════════════════════════════════ */
  
  .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
  }
  
  .btn-secondary .spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--auto-text-primary);
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* ═══════════════════════════════════════════════════════════════
     RESPONSIVE ADJUSTMENTS
     ═══════════════════════════════════════════════════════════════ */
  
  @media (max-width: 350px) {
    .automation-section {
      padding: 16px;
      margin-bottom: 16px;
    }
  
    .automation-section .section-header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .recording-controls {
      width: 100%;
      flex-wrap: wrap;
    }
  
    .recording-controls .btn {
      flex: 1;
      min-width: 100px;
    }
  
    .skill-modal {
      width: 96%;
      max-height: 90vh;
    }
  
    .skill-modal-body {
      padding: 16px;
    }
  }
  
  /* ═══════════════════════════════════════════════════════════════
     DARK MODE SUPPORT - DISABLED
     UI stays light regardless of system preference
     ═══════════════════════════════════════════════════════════════ */
  
  /* Dark mode disabled - keeping UI consistently light
  @media (prefers-color-scheme: dark) {
    :root {
      --auto-bg: #0f172a;
      --auto-card: #1e293b;
      --auto-border: #334155;
      --auto-border-light: #475569;
      --auto-text-primary: #f1f5f9;
      --auto-text-secondary: #94a3b8;
      --auto-text-muted: #64748b;
      --auto-secondary-light: #334155;
    }
  }
  */
  
  /* ═══════════════════════════════════════════════════════════════
     PHASE 31.1: COMING SOON UI (v2 - Redesigned)
     Story-driven preview page for Automation features - MVP Launch
     ═══════════════════════════════════════════════════════════════ */
  
  .coming-soon-container {
    padding: 20px 16px;
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    background: #ffffff;
  }
  
  /* Hero Section - Clean & Minimal */
  .coming-soon-hero {
    text-align: center;
    padding: 20px 0 8px 0;
  }
  
  .coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    margin-bottom: 14px;
  }
  
.badge-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auto-primary);
}

.badge-icon svg {
    width: 13px;
    height: 13px;
}
  
  .badge-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--auto-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .coming-soon-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--auto-text-primary);
    margin: 0 0 6px 0;
    line-height: 1.2;
  }
  
  .coming-soon-subtitle {
    font-size: 15px;
    color: var(--auto-text-secondary);
    margin: 0;
    font-weight: 400;
  }
  
  /* Story Section */
  .coming-soon-story {
    padding: 0 4px;
  }
  
  .story-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--auto-text-secondary);
    margin: 0;
    text-align: center;
  }
  
  /* Feature Cards - Center Aligned Icons */
  .coming-soon-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .feature-card {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    gap: 14px;
    padding: 14px 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--auto-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
  }
  
  .feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
  }
  
  .feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .feature-icon-record {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.15) 100%);
    color: #ef4444;
  }
  
  .feature-icon-share {
    background: linear-gradient(135deg, rgba(109, 85, 214, 0.1) 0%, rgba(109, 85, 214, 0.15) 100%);
    color: #6D55D6;
  }
  
  .feature-icon-connect {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #10b981;
  }
  
  .feature-icon-schedule {
    background: linear-gradient(135deg, rgba(109, 85, 214, 0.1) 0%, rgba(109, 85, 214, 0.15) 100%);
    color: #6D55D6;
  }
  
  .feature-content {
    flex: 1;
    min-width: 0;
  }
  
  .feature-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--auto-text-primary);
    margin: 0 0 3px 0;
  }
  
  .feature-content p {
    font-size: 12.5px;
    color: var(--auto-text-secondary);
    margin: 0;
    line-height: 1.45;
  }
  
  /* Data Sources - Horizontal Scroll */
  .coming-soon-datasources {
    padding: 16px 0;
    overflow: hidden;
  }
  
  .datasources-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--auto-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 12px 0;
  }
  
  .datasources-marquee {
    overflow: hidden;
    position: relative;
  }
  
  .datasources-marquee::before,
  .datasources-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 1;
    pointer-events: none;
  }
  
  .datasources-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #fafafa 0%, transparent 100%);
  }
  
  .datasources-marquee::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #fafafa 100%);
  }
  
  .datasources-track {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    width: max-content;
  }
  
  .datasources-track:hover {
    animation-play-state: paused;
  }
  
  @keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  
  .datasource-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--auto-text-secondary);
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--auto-border);
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .datasource-item:hover {
    color: var(--auto-primary);
    border-color: var(--auto-primary);
    background: var(--auto-primary-light);
  }
  
  .datasource-divider {
    color: var(--auto-border);
    font-size: 8px;
  }
  
  /* CTA Section - Card Style */
  .coming-soon-cta {
    margin-top: auto;
    padding: 0;
  }
  
  .cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  
  .cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auto-primary) 0%, #6D55D6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  }
  
  .cta-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--auto-text-primary);
    margin: 0 0 4px 0;
  }
  
  .cta-content p {
    font-size: 12.5px;
    color: var(--auto-text-secondary);
    margin: 0;
    line-height: 1.5;
  }
  
  .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--auto-primary) 0%, #6D55D6 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
  }
  
  .cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  }
  
  .cta-button:active {
    transform: translateY(0);
  }
  
  .cta-button svg {
    transition: transform 0.2s ease;
  }
  
  .cta-button:hover svg {
    transform: translateX(2px);
  }
  
  /* Responsive adjustments */
  @media (max-width: 360px) {
    .coming-soon-container {
      padding: 16px 12px;
      gap: 16px;
    }
  
    .coming-soon-title {
      font-size: 24px;
    }
  
    .story-text {
      font-size: 13px;
    }
  
    .feature-card {
      padding: 12px 14px;
      gap: 12px;
    }
  
    .feature-icon {
      width: 38px;
      height: 38px;
      min-width: 38px;
    }
  
    .feature-content h4 {
      font-size: 13px;
    }
  
    .feature-content p {
      font-size: 12px;
    }
  
    .cta-card {
      padding: 16px 14px;
    }
  }

/* ===========================================
   DARK MODE — Automation Overrides
   =========================================== */

[data-theme="dark"] {
    --auto-primary: #8B75E8;
    --auto-bg: #1a1a2e;
    --auto-card: #24243d;
    --auto-border: #353550;
    --auto-border-light: #2a2a45;
    --auto-text-primary: #f0f0f5;
    --auto-text-secondary: #a8a3c0;
    --auto-text-muted: #706b8a;
    --auto-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --auto-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --auto-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --auto-warning-light: #2e2a1a;
}

/* Coming Soon badge */
[data-theme="dark"] .coming-soon-badge {
    background: rgba(139, 117, 232, 0.15);
    border-color: rgba(139, 117, 232, 0.3);
}

/* Feature cards */
[data-theme="dark"] .feature-card {
    background: #24243d;
    border-color: #353550;
}

[data-theme="dark"] .feature-card:hover {
    border-color: rgba(139, 117, 232, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Feature icon backgrounds — deeper tints for dark mode */
[data-theme="dark"] .feature-icon-record {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.3) 100%);
}

[data-theme="dark"] .feature-icon-share {
    background: linear-gradient(135deg, rgba(139, 117, 232, 0.2) 0%, rgba(139, 117, 232, 0.3) 100%);
}

[data-theme="dark"] .feature-icon-connect {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.3) 100%);
}

[data-theme="dark"] .feature-icon-schedule {
    background: linear-gradient(135deg, rgba(139, 117, 232, 0.2) 0%, rgba(139, 117, 232, 0.3) 100%);
}

/* CTA card */
[data-theme="dark"] .cta-card {
    background: rgba(139, 117, 232, 0.06);
    border-color: rgba(139, 117, 232, 0.2);
}

/* Datasource items */
[data-theme="dark"] .datasource-item {
    background: #24243d;
    border-color: #353550;
}

/* Automation tab general cards */
[data-theme="dark"] .auto-card,
[data-theme="dark"] .skill-card,
[data-theme="dark"] .recording-card {
    background: #24243d;
    border-color: #353550;
}

[data-theme="dark"] .auto-card:hover,
[data-theme="dark"] .skill-card:hover {
    background: #2a2a45;
}

/* Execution elements */
[data-theme="dark"] .btn-cancel-execution {
    background: #24243d;
}

[data-theme="dark"] .execution-summary-card {
    background: #24243d;
}

[data-theme="dark"] .execution-steps-container {
    background: #24243d;
}

[data-theme="dark"] .execution-log-wrapper {
    background: #24243d;
}

/* Coming Soon content wrapper + container */
[data-theme="dark"] .coming-soon-content,
[data-theme="dark"] .coming-soon-container {
    background: #1a1a2e;
}
