:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}:root{--bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);--bg-secondary: #ffffff;--bg-tertiary: #f1f5f9;--bg-overlay: rgba(255, 255, 255, .95);--text-primary: #1e293b;--text-secondary: #475569;--text-muted: #64748b;--text-light: #94a3b8;--accent-primary: #3b82f6;--accent-secondary: #60a5fa;--accent-light: #dbeafe;--accent-dark: #2563eb;--success: #10b981;--success-light: #d1fae5;--danger: #ef4444;--danger-light: #fee2e2;--warning: #f59e0b;--warning-light: #fef3c7;--info: #06b6d4;--info-light: #cffafe;--card-bg: rgba(255, 255, 255, .95);--card-border: rgba(148, 163, 184, .15);--input-bg: #ffffff;--input-border: rgba(148, 163, 184, .25);--input-focus: rgba(59, 130, 246, .15);--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);--radius-sm: 4px;--radius-md: 6px;--radius-lg: 8px;--radius-xl: 12px;--radius-2xl: 16px;--radius-full: 50px;--transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--transition-normal: .2s cubic-bezier(.4, 0, .2, 1);--transition-slow: .3s cubic-bezier(.4, 0, .2, 1);--control-sm: 32px;--control-md: 40px;--control-lg: 44px;--space-0: 0;--space-1: 8px;--space-2: 12px;--space-3: 16px;--space-4: 20px;--space-5: 24px;--space-6: 32px}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{background:var(--bg-primary);background-attachment:fixed;color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.5;min-height:100vh;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.container{max-width:1200px;margin:0 auto;padding:var(--space-6) var(--space-5)}.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-6);padding:var(--space-4) 0;border-bottom:1px solid var(--card-border);flex-wrap:wrap;gap:var(--space-2)}.dashboard-header{display:flex;align-items:center;gap:var(--space-2)}.dashboard-logo{width:48px;height:48px;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.dashboard-header h1{font-size:1.875rem;font-weight:700;color:var(--text-primary)}.dashboard-header p{font-size:.875rem;color:var(--text-muted);margin-top:4px}.spacer{flex:1}.card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--radius-xl);padding:var(--space-5);margin-bottom:var(--space-5);box-shadow:var(--shadow-sm);transition:box-shadow var(--transition-normal),transform var(--transition-normal);animation:fadeIn .3s ease-out}.card:hover{box-shadow:var(--shadow-md)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:.875rem;font-weight:500;line-height:1;height:var(--control-md);padding:0 var(--space-3);border-radius:var(--radius-lg);border:1px solid transparent;background:var(--accent-primary);color:#fff;text-decoration:none;cursor:pointer;white-space:nowrap;transition:transform var(--transition-fast),box-shadow var(--transition-fast),background var(--transition-fast),border-color var(--transition-fast);align-self:center}.btn:hover:not(:disabled){background:var(--accent-dark);transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn:active{transform:translateY(0)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn--sm{height:var(--control-sm);padding:0 var(--space-2);font-size:.8rem}.btn--md{height:var(--control-md);padding:0 var(--space-3)}.btn--lg{height:var(--control-lg);padding:0 var(--space-4)}.btn--block{width:100%;justify-content:center}.btn.primary{background:var(--accent-primary);border-color:var(--accent-primary);color:#fff}.btn.success{background:var(--success);border-color:var(--success);color:#fff}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn.outline{background:transparent;color:var(--accent-primary);border-color:var(--accent-primary)}.btn.outline:hover:not(:disabled){background:var(--accent-primary);color:#fff}.btn.loading:after{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin 1s linear infinite}.btn-group{display:flex;gap:8px;flex-wrap:wrap}.form-group{margin-bottom:var(--space-4)}.form-group:last-child{margin-bottom:0}label{display:block;margin-bottom:6px;font-weight:600;color:var(--text-secondary);font-size:.875rem}input[type=text],input[type=email],input[type=password],input[type=file],input[type=url],input[type=tel],select,textarea{width:100%;height:var(--control-lg);padding:0 14px;background:var(--input-bg);border:1px solid var(--input-border);border-radius:var(--radius-lg);color:var(--text-primary);font-size:.875rem;line-height:1;transition:box-shadow var(--transition-fast),border-color var(--transition-fast),background var(--transition-fast)}textarea{min-height:calc(var(--control-lg) * 2);padding-top:12px;padding-bottom:12px;height:auto}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px var(--input-focus)}input::placeholder{color:var(--text-light)}input:disabled,select:disabled,textarea:disabled{opacity:.6;cursor:not-allowed;background:var(--bg-tertiary)}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--space-4)}.form-row{display:flex;gap:var(--space-4)}.form-row>.form-group{flex:1}.form-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.form-header label{margin-bottom:0}.table-wrap{overflow:auto;border-radius:var(--radius-xl);border:1px solid var(--card-border);background:var(--bg-secondary);box-shadow:var(--shadow-sm)}.table{width:100%;border-collapse:collapse;min-width:800px}.table th,.table td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--card-border)}.table th{background:var(--bg-tertiary);color:var(--text-secondary);font-weight:700;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;position:sticky;top:0;z-index:10}.table tbody tr{transition:background var(--transition-fast)}.table tbody tr:hover{background:var(--bg-tertiary)}.table tbody tr:last-child td{border-bottom:none}.users-table-container{overflow-x:auto;border:1px solid var(--card-border);border-radius:var(--radius-xl);margin-bottom:var(--space-5);background:var(--bg-secondary);box-shadow:var(--shadow-sm)}.users-table{width:100%;border-collapse:collapse;min-width:1000px}.users-table th,.users-table td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--card-border);font-size:.875rem;vertical-align:middle}.users-table th{background:var(--bg-tertiary);color:var(--text-secondary);font-weight:700;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;position:sticky;top:0;z-index:10}.users-table tbody tr:hover{background:var(--bg-tertiary)}.users-table input,.users-table select{width:100%;height:var(--control-sm);padding:0 8px;border:1px solid var(--input-border);border-radius:var(--radius-md);font-size:.8rem;line-height:1}.users-table .table-input,.users-table .table-select{height:var(--control-sm);padding:0 10px;font-size:.8rem;line-height:1;background:var(--input-bg);border:1px solid var(--input-border);border-radius:var(--radius-md);width:100%}.bulk-edit-table{min-width:1400px}.bulk-edit-table th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bulk-edit-table .name-input-group{display:flex;flex-direction:column;gap:4px;min-width:180px}.bulk-edit-table .name-input{flex:1;min-width:0}.bulk-edit-table .table-input:focus,.bulk-edit-table .table-select:focus{border-color:var(--accent-primary);box-shadow:0 0 0 2px #3b82f61a;outline:none}.name-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:260px}.col-email{min-width:220px}.col-phone{min-width:150px}.col-pass{min-width:160px}.col-role{min-width:120px;width:140px}.col-photo{min-width:220px}.col-status{min-width:120px;text-align:center}.col-idx{width:48px;text-align:right}.cell-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:260px}.btn--sm{height:var(--control-sm);padding:0 10px;font-size:.8rem}.users-table .status-pending,.users-table .status-success,.users-table .status-error{padding:2px 10px;font-size:.75rem;white-space:nowrap}.users-table input[type=url],.users-table input[type=email]{overflow:hidden;text-overflow:ellipsis}.users-table td{padding:10px 12px}@media (max-width: 900px){.name-grid{grid-template-columns:1fr}.cell-actions{min-width:0}}.status-pending,.status-success,.status-error{display:inline-flex;align-items:center;padding:4px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600}.status-pending{background:var(--bg-tertiary);color:var(--text-muted);border:1px solid var(--input-border)}.status-success{background:var(--success-light);color:var(--success);border:1px solid rgba(16,185,129,.3)}.status-error{background:var(--danger-light);color:var(--danger);border:1px solid rgba(239,68,68,.3)}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;max-height:300px;overflow-y:auto;padding:16px;border:1px solid var(--input-border);border-radius:var(--radius-lg);background:var(--bg-secondary)}.checkbox-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:var(--radius-md);font-size:.875rem;color:var(--text-secondary);cursor:pointer;transition:background var(--transition-fast),color var(--transition-fast)}.checkbox-item:hover{background:var(--bg-tertiary);color:var(--text-primary)}.checkbox-item input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent-primary)}.categorized-options{max-height:400px;overflow-y:auto;padding:16px;background:var(--bg-secondary);border:1px solid var(--input-border);border-radius:var(--radius-lg)}.category-section{margin-bottom:var(--space-5);padding:16px;background:var(--bg-tertiary);border-radius:var(--radius-lg);border:1px solid var(--card-border)}.category-title{font-size:.875rem;font-weight:700;color:var(--text-primary);margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid var(--accent-light)}.category-section .checkbox-grid{margin-top:8px;max-height:200px;padding:12px;background:var(--bg-secondary);border-radius:var(--radius-md)}.modal-overlay{position:fixed;inset:0;background:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:var(--bg-secondary);border-radius:var(--radius-2xl);width:100%;max-width:900px;max-height:90vh;overflow:hidden;box-shadow:var(--shadow-xl);border:1px solid var(--card-border)}.modal-header,.modal-footer{display:flex;align-items:center;gap:var(--space-2);padding:24px;background:var(--bg-tertiary)}.modal-header{justify-content:space-between;border-bottom:1px solid var(--card-border)}.modal-footer{justify-content:flex-end;border-top:1px solid var(--card-border)}.modal-header h3{margin:0;font-size:1.25rem;font-weight:700;color:var(--text-primary)}.modal-close{background:transparent;border:none;font-size:1.5rem;cursor:pointer;color:var(--text-muted);width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-md);transition:background var(--transition-fast),color var(--transition-fast)}.modal-close:hover{background:var(--bg-tertiary);color:var(--text-primary)}.modal-body{padding:24px;max-height:60vh;overflow-y:auto}.modal-tabs{display:flex;border-bottom:1px solid var(--card-border);background:var(--bg-tertiary);overflow-x:auto}.modal-tab{padding:12px 20px;background:transparent;border:none;border-bottom:3px solid transparent;color:var(--text-muted);cursor:pointer;font-weight:600;font-size:.875rem;white-space:nowrap;transition:color var(--transition-fast),background var(--transition-fast),border-color var(--transition-fast)}.error,.danger,.success,.note{padding:12px 16px;border-radius:var(--radius-lg);margin:var(--space-3) 0;font-size:.875rem;font-weight:600}.error,.danger{background:var(--danger-light);border:1px solid rgba(239,68,68,.3);color:var(--danger)}.success{background:var(--success-light);border:1px solid rgba(16,185,129,.3);color:var(--success)}.note{background:var(--info-light);border:1px solid rgba(6,182,212,.3);color:var(--info)}.credit-badge{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,var(--accent-primary) 0%,var(--accent-secondary) 100%);color:#fff;padding:8px 16px;border-radius:var(--radius-full);font-size:.875rem;font-weight:700;margin-bottom:var(--space-4);box-shadow:var(--shadow-sm)}.credit-badge:before{content:"⚡";font-size:1rem}.upload-section{text-align:center;padding:48px 24px;border:2px dashed var(--input-border);border-radius:var(--radius-xl);margin:var(--space-5) 0;background:var(--bg-tertiary);transition:border-color var(--transition-normal),background var(--transition-normal)}.upload-section:hover{border-color:var(--accent-primary);background:var(--accent-light)}.upload-section .form-group{display:flex;justify-content:center;align-items:center}.upload-section input[type=file]{text-align:center;margin:0 auto}.bulk-settings-panel{background:var(--card-bg);padding:var(--space-5);border-radius:var(--radius-xl);margin-bottom:var(--space-5);border:1px solid var(--card-border);box-shadow:var(--shadow-sm)}.bulk-user-creator .row:has(.form-group:has(label:contains("Default"))){display:none!important}.bulk-user-creator .form-group:has(label:contains("Default Company")),.bulk-user-creator .form-group:has(label:contains("Default Location")){display:none!important}.panel-header{margin-bottom:var(--space-4);padding-bottom:var(--space-3);border-bottom:1px solid var(--card-border)}.panel-header h4{margin:0 0 var(--space-2) 0;color:var(--text-primary);font-size:1.125rem;font-weight:600}.panel-subtitle{color:var(--text-muted);font-size:.875rem;margin:0;line-height:1.4}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4);margin-bottom:var(--space-4)}.setting-card{background:var(--bg-tertiary);border:1px solid var(--card-border);border-radius:var(--radius-lg);padding:var(--space-4)}.setting-card h5{margin:0 0 var(--space-3) 0;color:var(--text-primary);font-size:1rem;font-weight:600;display:flex;align-items:center;gap:8px}.setting-card h6{margin:0 0 var(--space-2) 0;color:var(--text-secondary);font-size:.875rem;font-weight:600}.setting-fields{display:flex;flex-direction:column;gap:var(--space-3)}.categorized-options.compact{max-height:200px;overflow-y:auto}.category-section{margin-bottom:var(--space-3);padding:var(--space-2);background:var(--bg-secondary);border-radius:var(--radius-md);border:1px solid rgba(148,163,184,.2)}.category-section:last-child{margin-bottom:0}.checkbox-grid.compact{display:grid;grid-template-columns:1fr;gap:6px;max-height:120px;overflow-y:auto}.checkbox-item.compact{display:flex;align-items:flex-start;gap:8px;padding:6px 8px;border-radius:var(--radius-sm);font-size:.8rem;color:var(--text-secondary);cursor:pointer;transition:background var(--transition-fast),color var(--transition-fast);margin:0}.checkbox-item.compact:hover{background:var(--bg-tertiary);color:var(--text-primary)}.checkbox-item.compact input[type=checkbox]{width:14px;height:14px;margin-top:2px;flex-shrink:0}.checkbox-label{line-height:1.3;flex:1;word-wrap:break-word}h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.25;color:var(--text-primary);margin-bottom:var(--space-3)}h1{font-size:2rem}h2{font-size:1.5rem;margin-bottom:var(--space-4)}h3{font-size:1.25rem}h4{font-size:1.125rem}h5{font-size:1rem}.row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-3);flex-wrap:wrap}.login-container,.signup-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-card,.signup-card{background:var(--bg-secondary);border-radius:var(--radius-2xl);box-shadow:var(--shadow-xl);width:100%;max-width:420px;overflow:hidden;border:1px solid var(--card-border)}.login-header,.signup-header{text-align:center;padding:32px 24px;background:var(--bg-tertiary);border-bottom:1px solid var(--card-border)}.login-logo,.signup-logo{width:64px;height:64px;margin-bottom:16px;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.login-title,.signup-title{font-size:1.75rem;font-weight:800;color:var(--text-primary);margin-bottom:8px}.login-subtitle,.signup-subtitle{font-size:.875rem;color:var(--text-muted)}.login-content,.signup-content{padding:24px}.google-login-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;background:var(--bg-secondary);border:1px solid var(--input-border);border-radius:var(--radius-lg);height:var(--control-lg);padding:0 24px;font-size:.875rem;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:transform var(--transition-fast),box-shadow var(--transition-fast),background var(--transition-fast),border-color var(--transition-fast);margin-bottom:var(--space-3)}.google-login-btn:hover:not(:disabled){background:var(--bg-tertiary);border-color:var(--accent-primary);transform:translateY(-1px);box-shadow:var(--shadow-md)}.google-login-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.google-icon{width:18px;height:18px}.divider{position:relative;text-align:center;margin:var(--space-4) 0;color:var(--text-muted);font-size:.875rem}.divider:before{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:var(--input-border)}.divider span{background:var(--bg-secondary);padding:0 16px;position:relative;z-index:1}.ghl-login-section{text-align:center;margin-bottom:var(--space-4)}.ghl-login-section h3{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:8px}.ghl-login-section p{color:var(--text-muted);margin-bottom:var(--space-3);font-size:.875rem}.ghl-buttons{display:flex;flex-direction:column;gap:12px}.ghl-login-btn{display:flex;align-items:center;justify-content:center;gap:12px;height:var(--control-lg);padding:0 24px;border-radius:var(--radius-lg);font-size:.875rem;font-weight:600;cursor:pointer;transition:transform var(--transition-fast),box-shadow var(--transition-fast),background var(--transition-fast);border:1px solid transparent}.ghl-login-btn.primary{background:var(--accent-primary);color:#fff}.ghl-login-btn.primary:hover{background:var(--accent-dark);transform:translateY(-1px);box-shadow:var(--shadow-md)}.ghl-login-btn.secondary{background:var(--success);color:#fff}.ghl-login-btn.secondary:hover{background:#059669;transform:translateY(-1px);box-shadow:var(--shadow-md)}.ghl-icon{font-size:1.125rem}.login-footer,.signup-footer{text-align:center;padding:20px;border-top:1px solid var(--card-border);background:var(--bg-tertiary)}.login-footer p,.signup-footer p{margin:0;color:var(--text-muted);font-size:.8rem}.signup-form{margin-bottom:var(--space-4)}.signup-footer a{color:var(--accent-primary);text-decoration:none;font-weight:600}.signup-footer a:hover{text-decoration:underline}.error-message,.success-message{border-radius:var(--radius-lg);padding:12px 16px;margin-bottom:var(--space-3);font-size:.875rem;font-weight:600;border:1px solid transparent}.error-message{background:var(--danger-light);border-color:#ef44444d;color:var(--danger)}.success-message{background:var(--success-light);border-color:#10b9814d;color:var(--success)}.form-section{margin-bottom:var(--space-6);padding:var(--space-5);background:var(--bg-tertiary);border-radius:var(--radius-lg);border:1px solid var(--card-border)}.form-section h4{margin-bottom:var(--space-3);color:var(--text-primary);font-size:1.125rem;font-weight:700;display:flex;align-items:center;gap:8px}.form-section-subtitle{color:var(--text-muted);font-size:.875rem;margin-bottom:var(--space-4);line-height:1.5}.checkbox-item-compact{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:var(--radius-sm);font-size:.8rem;color:var(--text-secondary);cursor:pointer;transition:background var(--transition-fast),color var(--transition-fast)}.progress-indicator{display:flex;align-items:center;gap:12px;margin-bottom:var(--space-4);padding:12px 16px;background:var(--bg-tertiary);border-radius:var(--radius-lg);border:1px solid var(--card-border)}.progress-text{font-size:.875rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.action-buttons{border-top:1px solid var(--card-border);padding-top:var(--space-5);margin-top:var(--space-5);display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}.file-upload-button{display:inline-flex;align-items:center;gap:8px;height:var(--control-lg);padding:0 20px;background:var(--bg-tertiary);border:2px dashed var(--input-border);border-radius:var(--radius-lg);color:var(--text-secondary);cursor:pointer;transition:background var(--transition-normal),border-color var(--transition-normal),color var(--transition-normal);font-weight:600}.loading-logo{display:block;margin:0 auto var(--space-4)}.error-content h2{color:var(--danger);margin-bottom:var(--space-3);font-size:1.5rem}.error-content p{color:var(--text-muted);margin-bottom:var(--space-4)}.users-table .error-message{font-size:.75rem;color:var(--danger);margin-top:4px;font-weight:600}.scopes-summary{display:inline-flex;align-items:center;padding:4px 8px;border-radius:var(--radius-full);background:var(--accent-light);color:var(--accent-dark);font-size:.75rem;font-weight:600;border:1px solid rgba(59,130,246,.2);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 1024px){.container{padding:var(--space-5) var(--space-4)}.form-grid{grid-template-columns:1fr;gap:var(--space-3)}.form-row{flex-direction:column;gap:var(--space-3)}.checkbox-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.header{flex-direction:column;align-items:stretch;gap:var(--space-3)}.dashboard-header{justify-content:center;text-align:center}.btn-group{justify-content:center}.settings-grid{grid-template-columns:1fr;gap:var(--space-3)}.bulk-edit-table{min-width:1200px}}@media (max-width: 768px){.container,.card{padding:var(--space-4) var(--space-3)}.users-table-container{font-size:.8rem}.users-table th,.users-table td{padding:8px 12px}.table-input,.table-select{width:90px;font-size:.75rem;padding:0 8px;height:var(--control-sm)}.btn{font-size:.8rem}.btn-group{flex-direction:column;gap:8px}.modal-content{width:95%;max-height:85vh}.modal-body{padding:20px 16px;max-height:60vh}.modal-header,.modal-footer{padding:20px 16px}.checkbox-grid{grid-template-columns:1fr;max-height:250px}.upload-section{padding:32px 16px}.form-header{flex-direction:column;align-items:stretch;gap:8px}.dashboard-header{flex-direction:column;gap:12px}.dashboard-header h1{font-size:1.5rem}.row{flex-direction:column;align-items:stretch;gap:12px}.bulk-settings-panel{padding:var(--space-3)}.panel-header h4{font-size:1rem}.setting-card{padding:var(--space-3)}.setting-card h5{font-size:.9rem}.bulk-edit-table{min-width:1000px}.bulk-edit-table .name-input-group{flex-direction:column;gap:2px}.bulk-edit-table .name-input{width:100%}}@media (max-width: 480px){.container{padding:var(--space-3) var(--space-2)}.card{padding:var(--space-3) var(--space-2);margin-bottom:var(--space-3)}h1{font-size:1.5rem}h2{font-size:1.25rem}.btn{width:100%;justify-content:center;margin-bottom:8px}.users-table{font-size:.75rem}.users-table th,.users-table td{padding:6px 8px}.table-input,.table-select{width:100%;font-size:.7rem}.modal-content{width:100%;height:100vh;max-height:100vh;border-radius:0}.login-card,.signup-card{width:100%;max-width:none;border-radius:0;min-height:100vh}.login-container,.signup-container{padding:0}}.loading{opacity:.6;pointer-events:none}.spinner{width:16px;height:16px;border:2px solid var(--input-border);border-top:2px solid var(--accent-primary);border-radius:50%;animation:spin 1s linear infinite;display:inline-block;margin-right:8px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.categorized-options::-webkit-scrollbar,.checkbox-grid::-webkit-scrollbar,.modal-body::-webkit-scrollbar{width:6px}.categorized-options::-webkit-scrollbar-track,.checkbox-grid::-webkit-scrollbar-track,.modal-body::-webkit-scrollbar-track{background:var(--bg-tertiary);border-radius:3px}.categorized-options::-webkit-scrollbar-thumb,.checkbox-grid::-webkit-scrollbar-thumb,.modal-body::-webkit-scrollbar-thumb{background:var(--accent-primary);border-radius:3px}.categorized-options::-webkit-scrollbar-thumb:hover,.checkbox-grid::-webkit-scrollbar-thumb:hover,.modal-body::-webkit-scrollbar-thumb:hover{background:var(--accent-dark)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.card{animation:fadeIn .3s ease-out}.btn:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px var(--input-focus)}@media (prefers-contrast: high){:root{--card-border: rgba(0, 0, 0, .3);--input-border: rgba(0, 0, 0, .4);--text-muted: #374151}}@media (prefers-color-scheme: dark){:root{--bg-primary: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);--bg-secondary: #1e293b;--bg-tertiary: #334155;--text-primary: #f1f5f9;--text-secondary: #cbd5e1;--text-muted: #94a3b8;--card-bg: rgba(30, 41, 59, .95);--card-border: rgba(148, 163, 184, .2);--input-bg: #334155;--input-border: rgba(148, 163, 184, .3)}}@media print{.btn-group,.modal-overlay,.upload-section{display:none!important}.container{padding:0}.card{box-shadow:none;border:1px solid #ddd}}.loading-container,.error-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg-primary);padding:20px}.loading-content,.error-content{text-align:center;background:var(--card-bg);padding:48px 32px;border-radius:var(--radius-2xl);box-shadow:var(--shadow-lg);border:1px solid var(--card-border);max-width:400px;width:100%}.loading-logo{display:block;margin:0 auto 24px}.error-content h2{color:var(--danger);margin-bottom:16px;font-size:1.5rem}.error-content p{color:var(--text-muted);margin-bottom:24px}.users-table tbody tr.error-row{background-color:var(--danger-light);border-left:4px solid var(--danger)}.users-table .error-message{font-size:.75rem;color:var(--danger);margin-top:4px;font-weight:500}.scopes-summary{display:inline-flex;align-items:center;padding:4px 8px;border-radius:var(--radius-full);background:var(--accent-light);color:var(--accent-dark);font-size:.75rem;font-weight:500;border:1px solid rgba(59,130,246,.2);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.action-buttons{border-top:1px solid var(--card-border);padding-top:24px;margin-top:24px;display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}.file-upload-area{position:relative;overflow:hidden}.file-upload-area input[type=file]{position:absolute;left:-9999px;opacity:0}.file-upload-button{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;background:var(--bg-tertiary);border:2px dashed var(--input-border);border-radius:var(--radius-lg);color:var(--text-secondary);cursor:pointer;transition:all var(--transition-normal);font-weight:500;min-height:44px}.file-upload-button:hover{border-color:var(--accent-primary);background:var(--accent-light);color:var(--accent-dark)}.file-upload-button.has-file{border-style:solid;border-color:var(--success);background:var(--success-light);color:var(--success)}.modal-content.large-modal{max-width:1200px}.modal-tabs{display:flex;border-bottom:1px solid var(--card-border);background:var(--bg-tertiary);margin:0;overflow-x:auto}.modal-tab{padding:12px 20px;background:transparent;border:none;border-bottom:3px solid transparent;color:var(--text-muted);cursor:pointer;font-weight:500;font-size:.875rem;transition:all var(--transition-fast);white-space:nowrap}.modal-tab:hover{color:var(--text-primary);background:#3b82f60d}.modal-tab.active{color:var(--accent-primary);border-bottom-color:var(--accent-primary);background:var(--bg-secondary)}.form-section{margin-bottom:32px;padding:24px;background:var(--bg-tertiary);border-radius:var(--radius-lg);border:1px solid var(--card-border)}.form-section h4{margin-bottom:16px;color:var(--text-primary);font-size:1.125rem;font-weight:600;display:flex;align-items:center;gap:8px}.form-section-subtitle{color:var(--text-muted);font-size:.875rem;margin-bottom:20px;line-height:1.5}.checkbox-grid-compact{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px;max-height:200px;overflow-y:auto;padding:12px;background:var(--bg-secondary);border:1px solid var(--input-border);border-radius:var(--radius-md)}.checkbox-item-compact{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:var(--radius-sm);font-size:.8rem;color:var(--text-secondary);cursor:pointer;transition:all var(--transition-fast)}.checkbox-item-compact:hover{background:var(--bg-tertiary);color:var(--text-primary)}.checkbox-item-compact input[type=checkbox]{width:14px;height:14px}.progress-indicator{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding:12px 16px;background:var(--bg-tertiary);border-radius:var(--radius-lg);border:1px solid var(--card-border)}.progress-bar{flex:1;height:6px;background:var(--bg-secondary);border-radius:var(--radius-full);overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,var(--accent-primary),var(--accent-secondary));transition:width var(--transition-slow);border-radius:var(--radius-full)}.progress-text{font-size:.875rem;font-weight:500;color:var(--text-secondary);white-space:nowrap}.toast-container{position:fixed;top:20px;right:20px;z-index:1100;pointer-events:none}.toast{background:var(--bg-secondary);border:1px solid var(--card-border);border-radius:var(--radius-lg);padding:12px 16px;margin-bottom:8px;box-shadow:var(--shadow-lg);pointer-events:auto;min-width:300px;animation:slideInRight .3s ease-out}.toast.success{border-left:4px solid var(--success)}.toast.error{border-left:4px solid var(--danger)}.toast.warning{border-left:4px solid var(--warning)}@keyframes slideInRight{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}.btn.loading{position:relative;color:transparent;pointer-events:none}.btn.loading:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:16px;height:16px;border:2px solid currentColor;border-top:2px solid transparent;border-radius:50%;animation:spin 1s linear infinite;color:currentColor;opacity:.8}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:8px!important}.mb-2{margin-bottom:16px!important}.mb-3{margin-bottom:24px!important}.mb-4{margin-bottom:32px!important}.mt-0{margin-top:0!important}.mt-1{margin-top:8px!important}.mt-2{margin-top:16px!important}.mt-3{margin-top:24px!important}.mt-4{margin-top:32px!important}.p-0{padding:0!important}.p-1{padding:8px!important}.p-2{padding:16px!important}.p-3{padding:24px!important}.p-4{padding:32px!important}.w-full{width:100%}.h-full{height:100%}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.cursor-pointer{cursor:pointer}.cursor-not-allowed{cursor:not-allowed}.select-none{-webkit-user-select:none;user-select:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
