:root{--primary: #2563eb;--primary-dark: #1e40af;--primary-light: #3b82f6;--secondary: #10b981;--accent: #8b5cf6;--dark: #0f172a;--dark-light: #1e293b;--gray: #64748b;--gray-light: #cbd5e1;--white: #ffffff;--background: #f8fafc;font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background-color:var(--white);color:var(--dark);overflow-x:hidden}h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.2;color:var(--dark)}h1{font-size:2.5rem;font-weight:800}h2{font-size:2rem}h3{font-size:1.5rem}p{color:var(--gray);line-height:1.6}a{color:var(--primary);text-decoration:none;transition:color .3s ease}a:hover{color:var(--primary-dark)}button{border-radius:6px;border:none;padding:10px 24px;font-size:.9375rem;font-weight:600;font-family:inherit;cursor:pointer;transition:all .3s ease;-webkit-tap-highlight-color:transparent}button:focus,button:focus-visible{outline:2px solid var(--primary-light);outline-offset:2px}button:active{transform:scale(.98)}.container{max-width:1200px;margin:0 auto;padding:0 20px}.page-container{padding:20px;min-height:calc(100vh - 60px)}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;gap:12px}.page-title{font-size:24px;font-weight:700;color:#1a202c;margin:0 0 4px;word-break:break-word}.page-subtitle{color:#718096;font-size:13px;margin:0}.empty-state-card{background:#fff;border-radius:10px;padding:36px 24px;text-align:center;box-shadow:0 2px 6px #00000014;max-width:500px;margin:32px auto}.empty-state-card .empty-icon{font-size:48px;display:block;margin-bottom:12px;opacity:.3}.empty-state-card h3{color:#1a202c;font-size:20px;font-weight:700;margin:0 0 8px}.empty-state-card p{color:#64748b;font-size:14px;margin:0;line-height:1.5}.info-card{background:linear-gradient(135deg,#667eea15,#764ba215);border:2px solid #667eea30;border-radius:10px;padding:12px 16px;margin-bottom:20px;display:flex;align-items:center;gap:10px}.info-card .info-icon{font-size:20px;flex-shrink:0}.info-card p{color:#475569;font-size:13px;margin:0;font-weight:500}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media(max-width:768px){body{font-size:14px}h1{font-size:1.75rem}h2{font-size:1.5rem}h3{font-size:1.25rem}.container{padding:0 16px}.page-container{padding:12px}.page-header{flex-direction:column;align-items:stretch;gap:12px}.page-header button{width:100%;min-height:44px;font-size:15px}.page-title{font-size:20px}.page-subtitle{font-size:12px}.empty-state-card{padding:24px 16px;margin:16px 0}.empty-state-card .empty-icon{font-size:40px}.empty-state-card h3{font-size:18px}.empty-state-card p{font-size:13px}.info-card{padding:12px;font-size:13px}.info-card .info-icon{font-size:18px}.info-card p{font-size:12px}button{min-height:44px;padding:12px 20px;font-size:14px}input,textarea,select{font-size:16px!important}::-webkit-scrollbar{width:4px;height:4px}}@media(max-width:480px){.page-title{font-size:18px}.page-subtitle{font-size:11px}.empty-state-card{padding:20px 12px}.empty-state-card .empty-icon{font-size:36px}.empty-state-card h3{font-size:16px}.empty-state-card p{font-size:12px}}@media(min-width:769px)and (max-width:1024px){.page-container{padding:16px}.page-title{font-size:22px}}@media(max-width:768px)and (orientation:landscape){.page-container{padding:8px 12px}.page-header{margin-bottom:12px}.empty-state-card{padding:16px 12px;margin:12px 0}.empty-state-card .empty-icon{font-size:32px;margin-bottom:8px}}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){body{-webkit-font-smoothing:subpixel-antialiased}}.app{width:100%;overflow-x:hidden}.header{position:fixed;top:0;left:0;right:0;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 1px 3px #0000001a;z-index:1000;padding:.75rem 0}.nav{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}.logo{display:flex;align-items:center;gap:.5rem;font-size:1.375rem;font-weight:800}.logo-text{background:linear-gradient(135deg,var(--primary),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.mobile-menu-btn{display:none;background:none;border:none;font-size:1.375rem;color:var(--dark);cursor:pointer;padding:.4rem}.nav-links{display:flex;align-items:center}.nav-links ul{display:flex;list-style:none;gap:1.5rem;margin:0;padding:0}.nav-links li a{color:var(--dark);font-weight:500;font-size:.9375rem;transition:color .3s ease;text-decoration:none}.nav-links li a:hover{color:var(--primary)}.nav-actions{display:flex;gap:.75rem;align-items:center}.nav-actions-mobile{display:none}.nav-actions-desktop{display:flex}.user-welcome{color:var(--dark);font-weight:500;font-size:.9375rem;margin-right:.5rem}.btn-secondary{background:transparent;color:var(--dark);border:2px solid var(--gray-light);padding:8px 18px}.btn-secondary:hover{border-color:var(--primary);color:var(--primary)}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:var(--white);box-shadow:0 3px 10px #2563eb4d}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 5px 16px #2563eb66}@media(max-width:768px){.mobile-menu-btn{display:block}.nav-links{position:absolute;top:100%;left:0;right:0;flex-direction:column;background:var(--white);box-shadow:0 4px 12px #0000001a;padding:0;gap:0;max-height:0;overflow:hidden;opacity:0;transition:all .3s ease}.nav-links.open{max-height:500px;opacity:1}.nav-links ul{display:flex;flex-direction:column;gap:0;padding:0;margin:0;list-style:none;width:100%}.nav-links li{padding:.75rem 1.5rem;width:100%}.nav-links li a{display:block;width:100%}.nav-actions-desktop{display:none}.nav-actions-mobile{display:flex;flex-direction:column;width:100%;padding:.75rem 1.5rem;gap:.6rem;border-top:1px solid #e0e0e0}.nav-actions-mobile .btn-secondary,.nav-actions-mobile .btn-primary{width:100%;padding:10px 20px;border-radius:6px;font-size:15px;font-weight:600;cursor:pointer;transition:all .3s ease}.nav-actions-mobile .user-welcome{text-align:center;width:100%;margin-bottom:.4rem;font-size:13px}}.hero{position:relative;min-height:100vh;display:flex;align-items:center;padding-top:70px;overflow:hidden}.hero-background{position:absolute;inset:0;background:linear-gradient(135deg,#f0f9ff,#e0f2fe,#ddd6fe);z-index:-1;animation:backgroundPulse 15s ease-in-out infinite}@keyframes backgroundPulse{0%,to{opacity:1}50%{opacity:.9}}.grid-pattern{position:absolute;inset:0;background-image:linear-gradient(rgba(37,99,235,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.05) 1px,transparent 1px);background-size:50px 50px;animation:gridMove 20s linear infinite}@keyframes gridMove{0%{transform:translate(0)}to{transform:translate(50px,50px)}}.circuit-pattern{position:absolute;inset:0;background-image:radial-gradient(circle at 2px 2px,rgba(37,99,235,.15) 1px,transparent 0);background-size:40px 40px;opacity:.3}.connection-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.15}.line{fill:none;stroke:#3b82f6;stroke-width:2;stroke-dasharray:1000;stroke-dashoffset:1000;animation:drawLine 8s ease-in-out infinite}.line-1{animation-delay:0s}.line-2{animation-delay:2s}.line-3{animation-delay:4s}@keyframes drawLine{0%,to{stroke-dashoffset:1000;opacity:0}20%,80%{stroke-dashoffset:0;opacity:1}}.floating-shapes{position:absolute;inset:0;pointer-events:none}.shape{position:absolute;border-radius:50%;filter:blur(60px);opacity:.3;animation:floatShape 15s ease-in-out infinite}.shape-1{width:300px;height:300px;background:linear-gradient(135deg,#3b82f6,#8b5cf6);top:10%;left:10%;animation-delay:0s}.shape-2{width:400px;height:400px;background:linear-gradient(135deg,#8b5cf6,#ec4899);top:50%;right:10%;animation-delay:3s}.shape-3{width:250px;height:250px;background:linear-gradient(135deg,#06b6d4,#3b82f6);bottom:20%;left:30%;animation-delay:6s}.shape-4{width:350px;height:350px;background:linear-gradient(135deg,#10b981,#06b6d4);bottom:10%;right:30%;animation-delay:9s}@keyframes floatShape{0%,to{transform:translate(0) scale(1)}33%{transform:translate(30px,-30px) scale(1.1)}66%{transform:translate(-20px,20px) scale(.9)}}.hero-content{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;padding:3rem 0;position:relative;z-index:1}.hero-text{animation:fadeInUp .8s ease-out}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.badge{display:inline-flex;align-items:center;gap:.5rem;background:var(--white);padding:.5rem 1rem;border-radius:50px;font-size:.8125rem;font-weight:600;color:var(--primary);box-shadow:0 2px 6px #2563eb1a;margin-bottom:1.25rem;animation:fadeInUp .8s ease-out .1s backwards;transition:all .3s ease;border:2px solid rgba(37,99,235,.1)}.badge:hover{transform:translateY(-2px);box-shadow:0 4px 12px #2563eb33;border-color:#2563eb4d}.badge-icon{font-size:.9375rem;animation:pulse 2s ease-in-out infinite}.voltage-indicator{margin-left:auto;padding:.125rem .5rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:var(--white);border-radius:4px;font-size:.6875rem;font-weight:700;animation:voltageFlicker 3s ease-in-out infinite}@keyframes voltageFlicker{0%,to{opacity:1}50%{opacity:.8}}.hero-title{margin-bottom:1.25rem;line-height:1.1;animation:fadeInUp .8s ease-out .2s backwards}.gradient-text{background:linear-gradient(135deg,var(--primary),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;background-size:200% 200%;animation:gradientShift 3s ease infinite}@keyframes gradientShift{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.hero-description{font-size:1.125rem;margin-bottom:1.5rem;max-width:600px;animation:fadeInUp .8s ease-out .3s backwards}.hero-actions{display:flex;gap:.875rem;margin-bottom:1.5rem;flex-wrap:wrap;animation:fadeInUp .8s ease-out .4s backwards}.btn-large{padding:12px 32px;font-size:1rem;display:inline-flex;align-items:center;gap:.5rem;transition:all .3s ease;position:relative;overflow:hidden}.btn-icon{font-size:1rem;transition:transform .3s ease}.btn-large:hover .btn-icon{transform:scale(1.2)}.btn-large:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#ffffff4d;transform:translate(-50%,-50%);transition:width .6s,height .6s}.btn-large:hover:before{width:300px;height:300px}.btn-outline{background:var(--white);color:var(--dark);border:2px solid var(--gray-light)}.btn-outline:hover{border-color:var(--primary);color:var(--primary);transform:translateY(-2px);box-shadow:0 8px 16px #2563eb1a}.arrow,.play-icon{font-size:1.125rem;transition:transform .3s ease}.btn-large:hover .arrow{transform:translate(4px)}.trust-badges{display:flex;gap:1.5rem;margin-bottom:2rem;flex-wrap:wrap;animation:fadeInUp .8s ease-out .45s backwards}.trust-item{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#fff9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:8px;border:1px solid rgba(59,130,246,.1);transition:all .3s ease}.trust-item:hover{background:#ffffffe6;transform:translateY(-2px);box-shadow:0 4px 12px #00000014}.trust-icon{font-size:1.125rem}.trust-text{font-size:.8125rem;font-weight:600;color:var(--dark)}.hero-stats{display:flex;gap:2.5rem;padding-top:1.5rem;border-top:2px solid rgba(59,130,246,.2);animation:fadeInUp .8s ease-out .5s backwards;position:relative}.hero-stats:before{content:"";position:absolute;top:-2px;left:0;width:60px;height:2px;background:linear-gradient(90deg,#3b82f6,#8b5cf6);animation:powerFlow 2s ease-in-out infinite}@keyframes powerFlow{0%{transform:translate(0)}to{transform:translate(400%)}}.stat{transition:transform .3s ease;position:relative}.stat:hover{transform:translateY(-5px)}.stat-icon{font-size:1.5rem;display:block;margin-bottom:.5rem;animation:pulse 2s ease-in-out infinite}.stat-value{font-size:1.75rem;font-weight:800;color:var(--primary);margin-bottom:.2rem;animation:countUp 2s ease-out forwards}@keyframes countUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.stat-label{font-size:.8125rem;color:var(--gray);font-weight:500}.industry-tags{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.5rem;animation:fadeInUp .8s ease-out .55s backwards}.industry-tag{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;background:linear-gradient(135deg,#3b82f61a,#8b5cf61a);border:1px solid rgba(59,130,246,.2);border-radius:6px;font-size:.75rem;font-weight:600;color:var(--dark);transition:all .3s ease}.industry-tag:hover{background:linear-gradient(135deg,#3b82f633,#8b5cf633);border-color:#3b82f666;transform:translateY(-2px)}.tag-icon{font-size:.875rem}.hero-visual{animation:fadeInRight 1s ease-out .3s backwards;position:relative}@keyframes fadeInRight{0%{opacity:0;transform:translate(50px)}to{opacity:1;transform:translate(0)}}.circuit-accent{position:absolute;width:100px;height:100px;pointer-events:none;z-index:5}.accent-top-left{top:-20px;left:-20px;background:linear-gradient(90deg,#3b82f6 50%,transparent 50%),linear-gradient(0deg,#3b82f6 50%,transparent 50%);background-size:20px 2px,2px 20px;background-position:0 0,0 0;background-repeat:no-repeat;opacity:.3;animation:circuitPulse 2s ease-in-out infinite}.accent-bottom-right{bottom:-20px;right:-20px;background:linear-gradient(90deg,transparent 50%,#8b5cf6 50%),linear-gradient(0deg,transparent 50%,#8b5cf6 50%);background-size:20px 2px,2px 20px;background-position:100% 100%,100% 100%;background-repeat:no-repeat;opacity:.3;animation:circuitPulse 2s ease-in-out infinite 1s}@keyframes circuitPulse{0%,to{opacity:.3}50%{opacity:.6}}.visual-card{background:var(--white);border-radius:12px;box-shadow:0 16px 48px #0000001a,0 0 0 1px #0000000d;overflow:hidden;transition:all .5s ease;animation:float 6s ease-in-out infinite;border:2px solid rgba(59,130,246,.1)}.visual-card:hover{transform:translateY(-8px) scale(1.02);box-shadow:0 24px 64px #00000026,0 0 0 1px #00000014;border-color:#3b82f64d}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.card-header{display:flex;align-items:center;gap:.875rem;padding:.875rem 1.25rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-bottom:2px solid rgba(59,130,246,.1)}.card-dots{display:flex;gap:.4rem}.card-dots span{width:10px;height:10px;border-radius:50%;background:var(--gray-light);animation:dotPulse 2s ease-in-out infinite}.card-dots span:nth-child(1){background:#ef4444;animation-delay:0s}.card-dots span:nth-child(2){background:#f59e0b;animation-delay:.2s}.card-dots span:nth-child(3){background:#10b981;animation-delay:.4s}@keyframes dotPulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.8}}.card-title{font-weight:600;color:var(--gray);font-size:.8125rem;flex:1}.card-status{display:flex;align-items:center;gap:.375rem;padding:.25rem .625rem;background:#10b9811a;border-radius:12px;border:1px solid rgba(16,185,129,.2)}.status-dot{width:6px;height:6px;border-radius:50%;background:#10b981;animation:blink 2s ease-in-out infinite;box-shadow:0 0 6px #10b981}@keyframes blink{0%,to{opacity:1}50%{opacity:.3}}.status-text{font-size:.6875rem;font-weight:600;color:#10b981}.card-content{padding:1.5rem}.power-strip{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:2px solid rgba(59,130,246,.15);border-radius:8px;padding:.875rem 1rem;margin-bottom:1.25rem}.power-indicator{display:flex;align-items:center;gap:.75rem}.power-label{font-size:.75rem;font-weight:600;color:var(--gray);text-transform:uppercase;letter-spacing:.5px}.power-bars{display:flex;gap:.25rem;flex:1}.power-bars .bar{flex:1;height:8px;background:#e5e7eb;border-radius:2px;transition:all .3s ease}.power-bars .bar.active{background:linear-gradient(90deg,#10b981,#06b6d4);box-shadow:0 0 8px #10b98166;animation:powerPulse 2s ease-in-out infinite}.power-bars .bar:nth-child(1).active{animation-delay:0s}.power-bars .bar:nth-child(2).active{animation-delay:.2s}.power-bars .bar:nth-child(3).active{animation-delay:.4s}.power-bars .bar:nth-child(4).active{animation-delay:.6s}@keyframes powerPulse{0%,to{opacity:1}50%{opacity:.6}}.power-value{font-size:.875rem;font-weight:700;color:#10b981;min-width:40px;text-align:right}.chart-section{margin-bottom:1.5rem}.chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.chart-title{font-size:.75rem;font-weight:600;color:var(--gray);text-transform:uppercase;letter-spacing:.5px}.chart-value{font-size:.875rem;font-weight:700;color:#10b981;padding:.25rem .5rem;background:#10b9811a;border-radius:4px;border:1px solid rgba(16,185,129,.2)}.chart-area{display:flex;align-items:flex-end;gap:.875rem;height:120px;padding:.875rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:6px;position:relative;border:1px solid rgba(59,130,246,.1)}.chart-bar{flex:1;background:linear-gradient(180deg,#3b82f6,#1e40af);border-radius:4px 4px 0 0;animation:growBar 1.5s ease-out;transition:all .3s ease;cursor:pointer;position:relative;box-shadow:0 0 10px #3b82f64d}.bar-label{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);font-size:.625rem;font-weight:600;color:var(--gray);white-space:nowrap}.chart-bar:after{content:attr(data-value) "%";position:absolute;top:-25px;left:50%;transform:translate(-50%);font-size:.6875rem;font-weight:600;color:var(--primary);opacity:0;transition:opacity .3s ease}.chart-bar:hover:after{opacity:1}.chart-bar:hover{background:linear-gradient(180deg,#8b5cf6,#6366f1);transform:scaleY(1.05);filter:brightness(1.1);box-shadow:0 0 20px #8b5cf680}@keyframes growBar{0%{height:0%;opacity:0}to{opacity:1}}.chart-bar:nth-child(1){animation-delay:.1s}.chart-bar:nth-child(2){animation-delay:.2s}.chart-bar:nth-child(3){animation-delay:.3s}.chart-bar:nth-child(4){animation-delay:.4s}.chart-bar:nth-child(5){animation-delay:.5s}.data-grid{display:grid;grid-template-columns:1fr 1fr;gap:.875rem;margin-bottom:1.25rem}.data-item{display:flex;align-items:center;gap:.625rem;padding:.875rem;background:var(--background);border-radius:6px;transition:all .3s ease;animation:fadeIn .6s ease-out backwards;position:relative;border:1px solid rgba(59,130,246,.1)}.data-item:nth-child(1){animation-delay:.6s}.data-item:nth-child(2){animation-delay:.7s}.data-item:nth-child(3){animation-delay:.8s}.data-item:nth-child(4){animation-delay:.9s}@keyframes fadeIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.data-item:hover{background:var(--white);box-shadow:0 6px 16px #0000001f;transform:translateY(-4px) scale(1.03);border-color:#3b82f64d}.data-item.ai-badge{background:linear-gradient(135deg,#ddd6fe,#e0e7ff);border:2px solid var(--accent);animation:glow 2s ease-in-out infinite}@keyframes glow{0%,to{box-shadow:0 0 10px #8b5cf666}50%{box-shadow:0 0 25px #8b5cf6b3}}.data-icon{font-size:1.5rem;transition:transform .3s ease;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:8px}.data-icon.electrical{background:linear-gradient(135deg,#fef3c7,#fde68a)}.data-icon.automation{background:linear-gradient(135deg,#dbeafe,#bfdbfe)}.data-icon.power{background:linear-gradient(135deg,#fef9c3,#fef08a)}.data-icon.ai{background:linear-gradient(135deg,#e9d5ff,#d8b4fe)}.data-item:hover .data-icon{transform:scale(1.2) rotate(5deg)}.data-content{flex:1}.data-text{font-size:.8125rem;font-weight:600;color:var(--dark);display:block;margin-bottom:.125rem}.data-count{font-size:.6875rem;color:var(--gray);font-weight:500}.connection-indicator{width:6px;height:6px;border-radius:50%;background:#d1d5db;flex-shrink:0}.connection-indicator.active{background:#10b981;box-shadow:0 0 8px #10b981;animation:blink 2s ease-in-out infinite}.activity-feed{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:2px solid rgba(59,130,246,.15);border-radius:8px;padding:1rem;display:flex;flex-direction:column;gap:.75rem}.activity-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:.5rem;border-bottom:1px solid rgba(59,130,246,.1);margin-bottom:.25rem}.activity-title{font-size:.75rem;font-weight:700;color:var(--dark);text-transform:uppercase;letter-spacing:.5px}.activity-pulse{width:8px;height:8px;border-radius:50%;background:#10b981;animation:blink 2s ease-in-out infinite;box-shadow:0 0 8px #10b981}.activity-item{display:flex;align-items:center;gap:.625rem;padding:.625rem;background:var(--white);border-radius:6px;transition:all .3s ease;animation:slideInLeft .5s ease-out backwards;border:1px solid rgba(59,130,246,.1)}.activity-item:nth-child(2){animation-delay:1s}.activity-item:nth-child(3){animation-delay:1.2s}.activity-item:nth-child(4){animation-delay:1.4s}@keyframes slideInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.activity-item:hover{background:#f8fafc;transform:translate(4px);border-color:#3b82f64d}.activity-icon{font-size:1rem;flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:6px}.activity-icon.success{background:#10b9811a}.activity-icon.processing{background:#3b82f61a;animation:pulse 2s ease-in-out infinite}.activity-icon.automation{background:#8b5cf61a}.activity-text{display:flex;flex-direction:column;gap:.125rem;flex:1}.activity-action{font-size:.75rem;font-weight:600;color:var(--dark)}.activity-action code{background:#3b82f61a;padding:.125rem .375rem;border-radius:3px;font-family:Courier New,monospace;font-size:.6875rem;color:var(--primary);font-weight:700}.activity-time{font-size:.6875rem;color:var(--gray)}.activity-voltage{font-size:.6875rem;font-weight:700;color:#f59e0b;background:#fbbf241a;padding:.125rem .375rem;border-radius:4px;border:1px solid rgba(251,191,36,.2)}.activity-status{font-size:.875rem;color:#10b981}.hero-background:before{content:"";position:absolute;width:100%;height:100%;background-image:radial-gradient(circle at 20% 30%,rgba(59,130,246,.1) 0%,transparent 50%),radial-gradient(circle at 80% 70%,rgba(139,92,246,.1) 0%,transparent 50%),radial-gradient(circle at 40% 80%,rgba(59,130,246,.08) 0%,transparent 50%);animation:particleMove 20s ease-in-out infinite}@keyframes particleMove{0%,to{transform:translate(0) scale(1)}33%{transform:translate(30px,-30px) scale(1.1)}66%{transform:translate(-30px,30px) scale(.9)}}@media(max-width:1024px){.hero-content{grid-template-columns:1fr;gap:2.5rem}.hero-visual{order:-1;animation:fadeIn 1s ease-out}.visual-card{transform:none;animation:none}.visual-card:hover{transform:translateY(-4px)}.hero-stats{gap:1.75rem}.industry-tags{justify-content:center}}@media(max-width:768px){.hero{min-height:auto;padding-top:80px}.hero-title{font-size:1.75rem}.hero-description{font-size:.9375rem}.hero-stats{flex-direction:column;gap:1.25rem}.data-grid{grid-template-columns:1fr}.hero-text{animation:fadeIn .8s ease-out}.hero-visual{animation:fadeIn .8s ease-out .2s backwards}.trust-badges{flex-direction:column;gap:.75rem}.trust-item{width:100%}.shape{opacity:.15}.industry-tags{justify-content:flex-start}.circuit-accent,.connection-lines{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.features{padding:4rem 0;background:var(--white)}.section-header{text-align:center;max-width:800px;margin:0 auto 3rem}.section-title{margin-bottom:.875rem}.section-description{font-size:1.125rem;color:var(--gray)}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.feature-card{padding:1.5rem;background:var(--white);border:2px solid var(--gray-light);border-radius:12px;transition:all .3s ease;position:relative;overflow:hidden}.feature-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--accent-color, var(--primary));transform:scaleX(0);transition:transform .3s ease}.feature-card:hover{border-color:var(--accent-color, var(--primary));transform:translateY(-6px);box-shadow:0 10px 32px #0000001a}.feature-card:hover:before{transform:scaleX(1)}.feature-icon-wrapper{width:56px;height:56px;display:flex;align-items:center;justify-content:center;background:var(--background);border-radius:10px;margin-bottom:1.25rem;position:relative}.feature-card:hover .feature-icon-wrapper{background:var(--accent-color, var(--primary));transform:scale(1.1) rotate(5deg);transition:all .3s ease}.feature-icon{font-size:1.75rem}.feature-title{margin-bottom:.875rem;color:var(--dark)}.feature-description{color:var(--gray);line-height:1.6;font-size:.9375rem}@media(max-width:768px){.features{padding:3rem 0}.features-grid{grid-template-columns:1fr;gap:1.25rem}.section-description{font-size:.9375rem}}.benefits{padding:4rem 0;background:linear-gradient(180deg,var(--white) 0%,var(--background) 100%)}.benefits-content{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}.benefits-list{display:flex;flex-direction:column;gap:1.5rem;margin-top:1.5rem}.benefit-item{display:flex;gap:1.25rem;align-items:flex-start}.benefit-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),var(--accent));border-radius:10px;font-size:1.375rem;flex-shrink:0}.benefit-content h3{margin-bottom:.4rem;color:var(--dark);font-size:1.125rem}.benefit-content p{color:var(--gray);line-height:1.6;font-size:.9375rem}.stats-card{background:var(--white);padding:1.5rem;border-radius:16px;box-shadow:0 16px 48px #0000001a}.stat-row{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-bottom:1.5rem}.stat-mini{background:var(--background);padding:1.25rem;border-radius:10px;text-align:center}.stat-mini-value{font-size:1.75rem;font-weight:800;background:linear-gradient(135deg,var(--primary),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.4rem}.stat-mini-label{font-size:.8125rem;color:var(--gray);font-weight:600}.progress-items{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:1.5rem}.progress-item{display:flex;flex-direction:column;gap:.4rem}.progress-header{display:flex;justify-content:space-between;font-size:.8125rem;font-weight:600;color:var(--dark)}.progress-percent{color:var(--primary)}.progress-bar{height:6px;background:var(--gray-light);border-radius:3px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,var(--primary),var(--accent));border-radius:3px;animation:fillProgress 1.5s ease-out}@keyframes fillProgress{0%{width:0}}.testimonial{padding:1.25rem;background:var(--background);border-radius:10px;border-left:3px solid var(--primary)}.testimonial-text{font-style:italic;color:var(--dark);margin-bottom:.875rem;line-height:1.6;font-size:.9375rem}.testimonial-author{display:flex;align-items:center;gap:.875rem}.author-avatar{width:42px;height:42px;background:linear-gradient(135deg,var(--primary),var(--accent));border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);font-weight:700}.author-name{font-weight:600;color:var(--dark);font-size:.8125rem}.author-title{font-size:.6875rem;color:var(--gray)}@media(max-width:1024px){.benefits-content{grid-template-columns:1fr;gap:2.5rem}}@media(max-width:768px){.benefits{padding:3rem 0}.benefit-item{flex-direction:column;gap:.875rem}.stat-row{grid-template-columns:1fr}}.pricing{padding:4rem 0;background:var(--white)}.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:2.5rem}.pricing-card{background:var(--white);border:2px solid var(--gray-light);border-radius:16px;padding:2rem;display:flex;flex-direction:column;transition:all .3s ease;position:relative}.pricing-card:hover{transform:translateY(-6px);box-shadow:0 16px 48px #00000026;border-color:var(--primary)}.pricing-card.popular{border-color:var(--primary);border-width:3px;box-shadow:0 10px 32px #2563eb33}.popular-badge{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:linear-gradient(135deg,var(--primary),var(--accent));color:var(--white);padding:.4rem 1.25rem;border-radius:50px;font-size:.8125rem;font-weight:700;box-shadow:0 3px 10px #2563eb4d}.pricing-header{text-align:center;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:2px solid var(--background)}.plan-name{font-size:1.375rem;margin-bottom:.875rem;color:var(--dark)}.plan-price{display:flex;align-items:baseline;justify-content:center;margin-bottom:.875rem}.price-currency{font-size:1.375rem;font-weight:700;color:var(--gray)}.price-amount{font-size:3rem;font-weight:800;color:var(--dark);margin:0 .2rem}.price-period{font-size:.9375rem;color:var(--gray)}.price-custom{font-size:2.25rem;font-weight:800;background:linear-gradient(135deg,var(--primary),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.plan-description{color:var(--gray);font-size:.8125rem}.features-list{list-style:none;margin-bottom:1.5rem;flex-grow:1}.feature-item{display:flex;align-items:center;gap:.625rem;padding:.625rem 0;color:var(--dark);font-size:.875rem}.feature-check{width:20px;height:20px;display:flex;align-items:center;justify-content:center;background:var(--background);border-radius:50%;color:var(--primary);font-weight:700;flex-shrink:0;font-size:.75rem}.pricing-card.popular .feature-check{background:linear-gradient(135deg,var(--primary),var(--accent));color:var(--white)}.btn-plan{width:100%;padding:.875rem;font-size:.9375rem;font-weight:700}.pricing-note{text-align:center;color:var(--gray);font-size:.8125rem;padding:1.5rem;background:var(--background);border-radius:10px}@media(max-width:768px){.pricing{padding:3rem 0}.pricing-grid{grid-template-columns:1fr;gap:1.5rem}.price-amount{font-size:2.25rem}}.cta{position:relative;padding:5rem 0;overflow:hidden}.cta-background{position:absolute;inset:0;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 50%,var(--accent) 100%);z-index:-1}.cta-background:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 20% 50%,rgba(255,255,255,.1) 0%,transparent 50%),radial-gradient(circle at 80% 80%,rgba(255,255,255,.1) 0%,transparent 50%)}.cta-content{text-align:center;max-width:900px;margin:0 auto}.cta-title{color:var(--white);font-size:2.5rem;margin-bottom:1.25rem}.gradient-text-white{background:linear-gradient(135deg,#fff,#e0e7ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.cta-description{color:#ffffffe6;font-size:1.125rem;margin-bottom:2.5rem;line-height:1.6}.cta-actions{display:flex;gap:.875rem;justify-content:center;margin-bottom:2.5rem;flex-wrap:wrap}.btn-white{background:var(--white);color:var(--primary);box-shadow:0 6px 20px #0003}.btn-white:hover{transform:translateY(-2px);box-shadow:0 10px 28px #0000004d}.btn-outline-white{background:transparent;color:var(--white);border:2px solid rgba(255,255,255,.5)}.btn-outline-white:hover{background:#ffffff1a;border-color:var(--white);transform:translateY(-2px)}.cta-features{display:flex;gap:1.75rem;justify-content:center;flex-wrap:wrap}.cta-feature{display:flex;align-items:center;gap:.4rem;color:var(--white);font-size:.9375rem;font-weight:500}.cta-check{width:20px;height:20px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:50%;font-weight:700;font-size:.75rem}@media(max-width:768px){.cta{padding:3.5rem 0}.cta-title{font-size:1.75rem}.cta-description{font-size:.9375rem}.cta-actions{flex-direction:column;align-items:stretch}.cta-features{flex-direction:column;align-items:center;gap:.875rem}}.footer{background:var(--dark);color:#fffc;padding:4rem 0 2rem}.footer-content{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:3rem;margin-bottom:3rem}.footer-column:first-child{max-width:320px}.footer-logo{display:flex;align-items:center;gap:.5rem;font-size:1.5rem;font-weight:800;color:var(--white);margin-bottom:1rem}.footer-logo .logo-icon{font-size:2rem;background:linear-gradient(135deg,var(--primary-light),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.footer-description{color:#ffffffb3;line-height:1.7;margin-bottom:1.5rem;font-size:.9375rem}.social-links{display:flex;gap:1rem}.social-link{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#ffffff1a;border-radius:8px;color:var(--white);font-weight:700;transition:all .3s ease}.social-link:hover{background:var(--primary);transform:translateY(-2px)}.footer-heading{color:var(--white);font-size:1rem;font-weight:700;margin-bottom:1.5rem}.footer-links{list-style:none;display:flex;flex-direction:column;gap:.75rem}.footer-links a{color:#ffffffb3;font-size:.9375rem;transition:color .3s ease}.footer-links a:hover{color:var(--white);text-decoration:underline}.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:2rem;border-top:1px solid rgba(255,255,255,.1);flex-wrap:wrap;gap:1rem}.copyright{color:#fff9;font-size:.875rem}.footer-bottom-links{display:flex;gap:2rem}.footer-bottom-links a{color:#fff9;font-size:.875rem;transition:color .3s ease}.footer-bottom-links a:hover{color:var(--white)}@media(max-width:1024px){.footer-content{grid-template-columns:1fr 1fr 1fr;gap:2rem}.footer-column:first-child{grid-column:1 / -1;max-width:100%}}@media(max-width:768px){.footer{padding:3rem 0 1.5rem}.footer-content{grid-template-columns:1fr;gap:2rem}.footer-bottom{flex-direction:column;text-align:center}.footer-bottom-links{gap:1rem}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-card{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;width:100%;max-width:420px;padding:40px}.login-header{text-align:center;margin-bottom:30px}.login-header .logo{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:20px;transition:transform .2s ease}.login-header .logo:hover{transform:scale(1.05)}.login-header .logo-icon{font-size:32px}.login-header .logo-text{font-size:28px;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.login-header h2{color:#333;margin:10px 0;font-size:24px}.login-header p{color:#666;font-size:14px}.error-message{background-color:#fee;border:1px solid #fcc;color:#c33;padding:12px;border-radius:6px;margin-bottom:20px;font-size:14px}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{color:#333;font-weight:600;font-size:14px}.form-group input,.form-group select{padding:12px;border:2px solid #e0e0e0;border-radius:6px;font-size:14px;transition:border-color .3s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#667eea}.form-group input:disabled,.form-group select:disabled{background-color:#f5f5f5;cursor:not-allowed}.btn-login{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:14px;border:none;border-radius:6px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;margin-top:10px}.btn-login:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-login:disabled{opacity:.6;cursor:not-allowed}.login-footer{margin-top:20px;text-align:center;color:#666;font-size:14px}.login-footer a{color:#667eea;text-decoration:none;font-weight:600}.login-footer a:hover{text-decoration:underline}.loading-container{display:flex;align-items:center;justify-content:center;min-height:100vh;font-size:18px;color:#667eea}.dashboard-container{min-height:100vh;background:linear-gradient(135deg,#f5f7fa,#e8eef3);overflow-x:hidden}.dashboard-header{background:#fff;box-shadow:0 2px 6px #00000014;padding:12px 24px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:100}.dashboard-header .logo{display:flex;align-items:center;gap:10px}.dashboard-header .logo-icon{font-size:28px}.dashboard-header .logo-text{font-size:22px;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.dashboard-content{max-width:1400px;margin:0 auto;padding:24px 20px}.welcome-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.welcome-section h1{font-size:28px;color:#1a202c;margin:0 0 6px;font-weight:700}.welcome-subtitle{color:#718096;font-size:14px;margin:0}.role-badge{padding:8px 16px;border-radius:20px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.badge-admin{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff}.badge-user{background:linear-gradient(135deg,#4facfe,#00f2fe);color:#fff}.badge-viewer{background:linear-gradient(135deg,#43e97b,#38f9d7);color:#fff}.stats-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-bottom:24px}@media(max-width:1400px){.stats-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:768px){.stats-grid{grid-template-columns:repeat(2,1fr);gap:10px}}@media(max-width:480px){.stats-grid{grid-template-columns:1fr;gap:10px}}.stat-card{background:#fff;border-radius:12px;padding:18px;display:flex;align-items:center;gap:12px;cursor:pointer;transition:all .3s;border:2px solid transparent;min-height:100px}.stat-card:hover{transform:translateY(-3px);box-shadow:0 6px 20px #0000001f;border-color:#667eea}.stat-icon{font-size:42px;opacity:.9;display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-content{flex:1;min-width:0;overflow:hidden}.stat-label{font-size:12px;color:#718096;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-value{font-size:28px;font-weight:700;color:#1a202c;line-height:1}.stat-sites{background:linear-gradient(135deg,#fff5f5,#ffe5e5)}.stat-systems{background:linear-gradient(135deg,#f0f9ff,#e0f2fe)}.stat-control-systems{background:linear-gradient(135deg,#faf5ff,#f3e8ff)}.stat-cables{background:linear-gradient(135deg,#f7fee7,#ecfccb)}.stat-junctions{background:linear-gradient(135deg,#fef3c7,#fde68a)}.stat-signals{background:linear-gradient(135deg,#f5f3ff,#ede9fe)}.stat-instruments{background:linear-gradient(135deg,#ecfdf5,#d1fae5)}.stat-devices{background:linear-gradient(135deg,#fef9c3,#fef08a)}.data-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-bottom:24px}@media(max-width:768px){.data-grid{grid-template-columns:1fr;gap:12px}}.data-card{background:#fff;border-radius:12px;padding:18px;box-shadow:0 2px 6px #00000014}.data-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.data-card-header h3{margin:0;color:#1a202c;font-size:16px;font-weight:700}.btn-view-all{background:transparent;border:none;color:#667eea;font-size:13px;font-weight:600;cursor:pointer;transition:color .3s}.btn-view-all:hover{color:#5568d3}.data-list{display:flex;flex-direction:column;gap:10px}.data-item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;cursor:pointer;transition:all .3s;background:#f8fafc}.data-item:hover{background:#eef2ff;transform:translate(3px)}.data-item-icon{font-size:24px;width:36px;height:36px;display:flex;align-items:center;justify-content:center}.data-item-content{flex:1}.data-item-title{font-weight:600;color:#1a202c;margin-bottom:2px;font-size:14px}.data-item-subtitle{font-size:12px;color:#718096}.loading-state,.empty-state{padding:24px;text-align:center;color:#a0aec0;font-size:13px}.profile-content{display:flex;flex-direction:column;gap:12px}.profile-item{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #e2e8f0}.profile-item:last-child{border-bottom:none}.profile-label{color:#718096;font-weight:600;font-size:13px}.profile-value{color:#1a202c;font-weight:500;font-size:13px}.profile-badge{padding:5px 12px;border-radius:14px;font-size:11px;font-weight:700;text-transform:uppercase}@media(max-width:768px){.dashboard-header{padding:10px 12px}.header-right{gap:10px}.user-info{display:none}.welcome-section{flex-direction:column;align-items:flex-start;gap:10px}.welcome-section h1{font-size:22px}.stat-card{padding:14px;min-height:90px;gap:10px}.stat-icon{font-size:32px}.stat-label{font-size:10px}.stat-value{font-size:22px}.data-card{padding:14px}.data-card-header h3{font-size:14px}.data-item{padding:8px}.data-item-icon{font-size:20px;width:32px;height:32px}.data-item-title{font-size:13px}.data-item-subtitle{font-size:11px}.profile-item{flex-direction:column;align-items:flex-start;gap:6px;padding:8px 0}.profile-value{word-break:break-word;max-width:100%}}@media(max-width:480px){.page-title{font-size:20px}.page-subtitle{font-size:13px}.stat-card{padding:12px;min-height:80px;gap:8px}.stat-icon{font-size:28px}.stat-label{font-size:9px}.stat-value{font-size:18px}.data-card{padding:12px}.data-card-header{flex-direction:column;align-items:flex-start;gap:6px}.btn-view-all{font-size:12px}}.unauthorized-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.unauthorized-card{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;padding:60px 40px;text-align:center;max-width:500px}.unauthorized-icon{font-size:80px;margin-bottom:20px}.unauthorized-card h1{color:#333;font-size:32px;margin:0 0 15px}.unauthorized-card p{color:#666;font-size:16px;margin:10px 0}.subtext{font-size:14px;color:#999}.btn-back{display:inline-block;margin-top:30px;padding:14px 32px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;text-decoration:none;border-radius:6px;font-weight:600;transition:transform .2s,box-shadow .2s}.btn-back:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.main-layout{display:flex;flex-direction:column;height:100vh;background:#f8fafc;overflow-x:hidden}.main-header{background:#fff;box-shadow:0 2px 6px #00000014;padding:12px 24px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:100;height:56px}.main-header .logo{display:flex;align-items:center;gap:10px;transition:transform .2s ease}.main-header .logo:hover{transform:scale(1.05)}.main-header .logo-text{font-size:22px;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-right{display:flex;align-items:center;gap:16px}.hamburger-menu{display:block;background:transparent;border:none;cursor:pointer;padding:6px;border-radius:6px;transition:background .2s}.hamburger-menu:hover{background:#f1f5f9}.hamburger-icon{font-size:22px;color:#475569;display:block}.sidebar-overlay{display:none;position:fixed;inset:56px 0 0;background:#00000080;z-index:85}.user-info{color:#666;font-size:13px;font-weight:500}.btn-logout{background:#f44336;color:#fff;padding:8px 20px;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .3s}.btn-logout:hover{background:#d32f2f;transform:translateY(-2px);box-shadow:0 3px 10px #f443364d}.main-content-wrapper{display:flex;flex:1;overflow:hidden}.main-sidebar{width:260px;background:#fff;border-right:1px solid #e2e8f0;box-shadow:2px 0 6px #0000000a;overflow-y:auto;padding:12px 0;transition:width .3s ease-in-out,padding .3s ease-in-out}.main-sidebar.collapsed{width:0;padding:0;border-right:none;overflow:hidden}.main-sidebar::-webkit-scrollbar{width:5px}.main-sidebar::-webkit-scrollbar-track{background:#f1f5f9}.main-sidebar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.sidebar-nav{display:flex;flex-direction:column;gap:3px;padding:0 12px}.sidebar-site-selector{position:relative;margin-bottom:6px}.site-selector-container{display:flex;gap:6px;align-items:stretch;width:100%}.sidebar-site-button{display:flex;align-items:center;gap:10px;padding:12px 14px;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:10px;cursor:pointer;transition:all .3s;box-shadow:0 3px 10px #667eea4d;flex:1;color:#fff;min-width:0}.sidebar-site-button:hover{transform:translateY(-2px);box-shadow:0 5px 14px #667eea66}.sidebar-site-button:active{transform:translateY(0)}.site-settings-button{display:flex;align-items:center;justify-content:center;width:48px;min-width:48px;padding:12px;background:#f1f5f9;border:none;border-radius:10px;cursor:pointer;transition:all .3s;font-size:18px;flex-shrink:0}.site-settings-button:hover{background:#e2e8f0;transform:translateY(-2px);box-shadow:0 3px 10px #0000001a}.site-settings-button:active{transform:translateY(0);background:#cbd5e1}.sidebar-site-button .site-icon{font-size:22px;flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:7px}.site-info{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.site-label{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;opacity:.8}.site-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.sidebar-site-button .dropdown-arrow{font-size:9px;flex-shrink:0;transition:transform .2s}.sidebar-site-dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border-radius:10px;box-shadow:0 6px 20px #00000026;z-index:1000;max-height:320px;overflow:hidden;animation:dropdownFadeIn .2s ease}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.site-dropdown-header{padding:10px 14px;font-size:10px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.site-dropdown-list{max-height:270px;overflow-y:auto}.site-dropdown-list::-webkit-scrollbar{width:5px}.site-dropdown-list::-webkit-scrollbar-track{background:#f1f5f9}.site-dropdown-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.site-dropdown-empty{display:flex;align-items:center;gap:10px;padding:16px 14px;text-align:left}.empty-icon{font-size:28px;opacity:.3;flex-shrink:0}.empty-text{flex:1}.empty-title{font-weight:600;color:#64748b;font-size:12px;margin-bottom:3px}.empty-desc{font-size:10px;color:#94a3b8}.site-dropdown-item{display:flex;align-items:center;gap:8px;padding:8px 10px;width:100%;background:transparent;border:none;border-bottom:1px solid #f1f5f9;cursor:pointer;transition:all .2s;text-align:left}.site-dropdown-item:last-child{border-bottom:none}.site-dropdown-item:hover{background:#f8fafc}.site-dropdown-item.active{background:linear-gradient(135deg,#667eea1a,#764ba21a);border-left:3px solid #667eea}.site-dropdown-icon{font-size:16px;flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;border-radius:7px}.site-dropdown-item.active .site-dropdown-icon{background:linear-gradient(135deg,#667eea,#764ba2)}.site-dropdown-content{flex:1;min-width:0}.site-dropdown-name{font-weight:600;color:#1e293b;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.site-dropdown-desc{font-size:10px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.sidebar-separator{margin:12px 0;height:1px;background:linear-gradient(90deg,transparent 0%,#e2e8f0 20%,#cbd5e1 50%,#e2e8f0 80%,transparent 100%);position:relative}.sidebar-separator:before{content:"";position:absolute;top:-3px;left:50%;transform:translate(-50%);width:36px;height:6px;background:linear-gradient(135deg,#667eea,#764ba2);opacity:.1;border-radius:3px}.nav-button{display:flex;align-items:center;gap:10px;padding:10px 14px;background:transparent;border:none;border-radius:8px;cursor:pointer;transition:all .2s;text-align:left;font-size:14px;font-weight:500;color:#475569}.nav-button:hover{background:#f1f5f9;color:#667eea;transform:translate(3px)}.nav-button.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 3px 10px #667eea4d}.nav-button.active .nav-icon{background:#fff3;color:#fff}.nav-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;border-radius:7px;font-size:18px;flex-shrink:0;transition:all .2s}.nav-label{flex:1}.main-content{flex:1;overflow-y:auto;overflow-x:hidden;background:#f8fafc}.main-content::-webkit-scrollbar{width:7px}.main-content::-webkit-scrollbar-track{background:#f1f5f9}.main-content::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.page-container{max-width:1400px;margin:0 auto;padding:24px 20px;overflow-x:hidden}.page-header{margin-bottom:24px}.page-title{font-size:28px;color:#1a202c;margin:0 0 6px;font-weight:700}.page-subtitle{color:#718096;font-size:14px;margin:0}@media(max-width:1024px){.main-sidebar:not(.collapsed){width:220px}.nav-button{font-size:13px;padding:9px 11px}.nav-icon{width:30px;height:30px;font-size:16px}.sidebar-site-button{padding:9px 11px}.site-settings-button{width:40px;font-size:15px}.site-name{font-size:12px}.sidebar-nav{padding:0 10px}}@media(max-width:768px){.main-header{padding:10px 12px}.user-info{display:none}.main-sidebar{position:fixed;left:-260px;top:56px;height:calc(100vh - 56px);z-index:90;transition:left .3s ease-in-out;width:260px!important;padding:12px 0!important}.main-sidebar.collapsed{width:260px!important;padding:12px 0!important;left:-260px}.main-sidebar.open{left:0;box-shadow:4px 0 14px #0003}.sidebar-overlay{display:block}.page-container{padding:14px 10px}.page-title{font-size:22px}.page-subtitle{font-size:13px}}@media(max-width:480px){.main-header{padding:8px 10px}.main-header .logo-text{font-size:18px}.btn-logout{padding:7px 14px;font-size:12px}.page-container{padding:12px 8px}.page-title{font-size:18px}.page-subtitle{font-size:12px}.site-label{font-size:8px}.site-name{font-size:11px}.site-settings-button{width:36px;font-size:13px;padding:8px}.main-sidebar,.main-sidebar.collapsed{left:-260px}}.dialog-overlay{position:fixed;inset:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;overflow-y:auto;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.dialog-content{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;width:100%;max-height:90vh;display:flex;flex-direction:column;animation:slideIn .3s ease-out;position:relative}@keyframes slideIn{0%{opacity:0;transform:translateY(-50px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.dialog-small{max-width:400px}.dialog-medium{max-width:600px}.dialog-large{max-width:800px}.dialog-xlarge{max-width:1000px}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:2px solid #e2e8f0;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px 16px 0 0}.dialog-title{margin:0;font-size:20px;font-weight:700;color:#fff;display:flex;align-items:center;gap:8px}.dialog-close-btn{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;font-size:22px;width:36px;height:36px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;line-height:1;padding:0}.dialog-close-btn:hover{background:#ffffff4d;transform:scale(1.1)}.dialog-close-btn:active{transform:scale(.95)}.dialog-body{padding:24px;overflow-y:auto;flex:1}.dialog-body form{display:flex;flex-direction:column;gap:20px}.dialog-body .form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.dialog-body .form-group{display:flex;flex-direction:column;gap:6px}.dialog-body .form-group label{display:block;font-size:14px;font-weight:600;color:#1e293b}.dialog-body .form-group input,.dialog-body .form-group select,.dialog-body .form-group textarea{width:100%;padding:10px 14px;font-size:14px;border:2px solid #e2e8f0;border-radius:8px;transition:all .2s;font-family:inherit}.dialog-body .form-group input:focus,.dialog-body .form-group select:focus,.dialog-body .form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.dialog-body .form-group input:disabled,.dialog-body .form-group select:disabled,.dialog-body .form-group textarea:disabled{background-color:#f1f5f9;color:#64748b;cursor:not-allowed;opacity:.7}.dialog-body .form-group small{font-size:12px;color:#64748b}.dialog-body .form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:8px;padding-top:20px;border-top:2px solid #f1f5f9}.dialog-body .form-actions button{padding:10px 24px;font-size:14px;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s;border:none;display:inline-flex;align-items:center;gap:6px}.dialog-body .form-actions .btn-secondary{background:#f1f5f9;color:#475569;border:2px solid #e2e8f0}.dialog-body .form-actions .btn-secondary:hover{background:#e2e8f0;transform:translateY(-1px)}.dialog-body .form-actions .btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 4px 12px #667eea4d}.dialog-body .form-actions .btn-primary:hover{box-shadow:0 6px 16px #667eea66;transform:translateY(-2px)}.dialog-body .form-actions .btn-primary:active,.dialog-body .form-actions .btn-secondary:active{transform:translateY(0)}@media(max-width:768px){.dialog-overlay{padding:0;align-items:flex-end}.dialog-content{max-width:100%;max-height:95vh;margin:0;border-radius:16px 16px 0 0;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.dialog-header{padding:16px 20px}.dialog-title{font-size:18px}.dialog-close-btn{width:40px;height:40px;font-size:24px}.dialog-body{padding:20px}.dialog-body .form-row{grid-template-columns:1fr}.dialog-body .form-actions{flex-direction:column-reverse}.dialog-body .form-actions button{width:100%;justify-content:center}}@media(min-width:769px)and (max-width:1024px){.dialog-small{max-width:90%}.dialog-medium{max-width:80%}.dialog-large{max-width:90%}.dialog-xlarge{max-width:95%}}@media(max-width:480px){.dialog-header{padding:12px 16px}.dialog-title{font-size:16px}.dialog-body{padding:16px}.dialog-body .form-group input,.dialog-body .form-group select,.dialog-body .form-group textarea{font-size:16px}}.page-title .title-icon{margin-right:12px;font-size:32px;vertical-align:middle}.data-table tbody tr{transition:all .2s ease}.data-table tbody tr:hover{background:#f8fafc;transform:translate(2px)}.data-table tbody td:nth-child(2){font-weight:600;color:#1e293b}.btn-primary{position:relative;overflow:hidden}.btn-primary:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#ffffff4d;transform:translate(-50%,-50%);transition:width .6s,height .6s}.btn-primary:hover:before{width:300px;height:300px}.info-card div p:first-child{font-weight:600;color:#92400e}.info-card div p:last-child{color:#78350f;margin:0}.template-selection-card{background:linear-gradient(135deg,#e0e7ff,#c7d2fe);border:2px solid #6366f1;border-radius:12px;padding:20px;margin-bottom:24px;transition:all .3s ease}.template-selection-card:hover{box-shadow:0 4px 16px #6366f133}.template-header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.template-icon{font-size:1.5em;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.template-label{margin:0;font-weight:700;font-size:1.1em;color:#4338ca;flex:1}.template-select{width:100%;padding:12px 16px;border-radius:8px;border:2px solid #6366f1;font-size:.95em;background:#fff;color:#1e293b;cursor:pointer;transition:all .2s}.template-select:hover{border-color:#4f46e5;box-shadow:0 2px 8px #6366f126}.template-select:focus{outline:none;border-color:#4338ca;box-shadow:0 0 0 3px #6366f133}.template-selected-info{margin-top:10px;padding:10px 14px;background:#6366f11a;border-radius:6px;font-size:.85em;color:#4338ca;display:flex;align-items:center;gap:8px;animation:fadeInSlide .3s ease-out}@keyframes fadeInSlide{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.template-selected-info:before{content:"✓";font-weight:700;color:#10b981;font-size:1.2em}.input-disabled{background-color:#f1f5f9;color:#64748b;cursor:not-allowed;border:1px solid #cbd5e1;padding:10px 14px;border-radius:6px;font-size:14px;width:100%;opacity:.7}.btn-cores{background:#9333ea1a;color:#9333ea}.btn-cores:hover{background:#9333ea33;transform:scale(1.1)}.btn-duplicate{background:#3b82f61a;color:#3b82f6}.btn-duplicate:hover{background:#3b82f633;transform:scale(1.1)}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;overflow-y:auto}.modal-content{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:700px;width:100%;max-height:90vh;display:flex;flex-direction:column;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-50px)}to{opacity:1;transform:translateY(0)}}.cores-modal{max-width:800px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:2px solid #e2e8f0;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:16px 16px 0 0}.modal-header h2{margin:0;font-size:18px;font-weight:700;color:#fff;display:flex;align-items:center;gap:8px}.btn-close{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;font-size:20px;width:32px;height:32px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.btn-close:hover{background:#ffffff4d;transform:scale(1.1)}.modal-body{padding:24px 32px;overflow-y:auto;flex:1}.cable-info-bar{display:flex;gap:24px;padding:16px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:10px;border:1px solid #e2e8f0;margin-bottom:24px;flex-wrap:wrap}.cable-info-bar span{font-size:14px;color:#475569}.cable-info-bar strong{color:#1e293b;margin-right:4px}.cores-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:12px}.cores-header h3{margin:0;font-size:18px;font-weight:700;color:#1a202c}.btn-sm{padding:8px 20px;font-size:14px}.core-form-card{background:linear-gradient(135deg,#ede9fe,#ddd6fe);border:2px solid #c7d2fe;border-radius:12px;padding:20px;margin-bottom:24px}.core-form-card h4{margin:0 0 16px;font-size:16px;font-weight:700;color:#5b21b6}.cores-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.core-card{background:linear-gradient(135deg,#fff,#f8fafc);border:2px solid #e2e8f0;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;transition:all .3s}.core-card:hover{border-color:#9333ea;box-shadow:0 4px 16px #9333ea26;transform:translateY(-2px)}.core-visual-small{display:flex;justify-content:center}.core-wire-small{height:40px;width:100%;border-radius:20px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 8px #00000026,inset 0 2px 4px #ffffff4d;border:2px solid rgba(0,0,0,.1);position:relative;overflow:hidden}.core-wire-small:before{content:"";position:absolute;top:0;left:0;right:0;height:50%;background:linear-gradient(180deg,rgba(255,255,255,.3) 0%,transparent 100%);pointer-events:none}.core-label-small{font-size:13px;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5);z-index:1;letter-spacing:.5px;text-transform:uppercase}.core-details{display:flex;flex-direction:column;gap:6px;flex:1}.core-detail-row{font-size:13px;color:#475569;display:flex;gap:6px}.core-detail-row strong{color:#1e293b;min-width:100px}.core-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:8px;border-top:1px solid #e2e8f0}.cores-table-container{margin-top:20px;overflow-x:auto}.cores-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.cores-table thead{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.cores-table thead th{padding:12px 16px;text-align:left;font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.cores-table tbody tr{border-bottom:1px solid #e2e8f0;transition:background-color .2s}.cores-table tbody tr:hover{background-color:#f8fafc}.cores-table tbody tr:last-child{border-bottom:none}.cores-table tbody td{padding:12px 16px;font-size:14px;color:#475569}.core-name-cell{display:flex;align-items:center;gap:10px}.core-color-indicator{width:24px;height:24px;border-radius:50%;border:2px solid rgba(0,0,0,.1);box-shadow:0 2px 4px #0000001a;flex-shrink:0}.core-description{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:768px){.modal-overlay{padding:0;align-items:flex-end}.modal-content{max-width:100%;max-height:95vh;margin:0;border-radius:16px 16px 0 0;animation:modalSlideUp .3s ease-out}@keyframes modalSlideUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.modal-header{padding:14px 16px;border-radius:16px 16px 0 0}.modal-header h2{font-size:16px}.btn-close{width:36px;height:36px;font-size:20px}.modal-body{padding:16px}.cable-info-bar{flex-direction:column;gap:8px;padding:12px}.cable-info-bar span{font-size:13px}.cores-header{flex-direction:column;align-items:stretch;gap:12px}.cores-header h3{font-size:16px}.btn-sm{width:100%;padding:12px 20px;font-size:14px;min-height:44px}.core-form-card{padding:16px;border-radius:10px}.core-form-card h4{font-size:15px}.core-form-card .form-group input,.core-form-card .form-group textarea,.core-form-card .form-group select{font-size:16px;padding:12px}.core-form-card .form-actions{flex-direction:column;gap:8px}.core-form-card .form-actions button{width:100%}.cores-table-container{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px}.cores-table{font-size:12px;min-width:600px}.cores-table thead th{padding:10px 8px;font-size:11px}.cores-table tbody td{padding:10px 8px;font-size:12px}.core-color-indicator{width:20px;height:20px}.core-description{max-width:120px;font-size:11px}.cores-table .action-buttons{gap:4px}.cores-table .btn-icon{min-width:36px;min-height:36px;font-size:16px;padding:6px}.template-selection-card,.form-card>div[style*=linear-gradient]{padding:12px;margin-bottom:16px;border-radius:8px}.template-header{flex-wrap:wrap}.template-icon{font-size:1.3em}.template-label{font-size:.95em}.template-select{padding:12px 14px;font-size:14px}.template-selected-info{font-size:12px;padding:10px 12px}.form-card>div[style*=linear-gradient]>div{font-size:13px!important}.form-card>div[style*=linear-gradient] span[style*=monospace]{display:block;margin-top:4px}}@media(min-width:769px)and (max-width:1024px){.modal-content{max-width:90%}.modal-body{padding:20px 24px}.cable-info-bar{gap:16px}.cores-table{font-size:13px}.cores-table thead th,.cores-table tbody td{padding:10px 12px}}@media(max-width:480px){.modal-header h2{font-size:14px}.cable-info-bar span{font-size:12px}.cores-header h3{font-size:15px}.form-card h3{font-size:16px}.filter-bar button{font-size:11px;padding:8px 12px}.mobile-card{padding:12px}.mobile-card-title{font-size:14px}.mobile-card-row{font-size:12px}.mobile-card-actions .btn-icon{font-size:16px;padding:10px 8px}}@media(max-width:768px)and (orientation:landscape){.modal-content{max-height:85vh}.modal-body{padding:12px 16px}.cable-info-bar{flex-direction:row;flex-wrap:wrap}}.filter-bar button{padding:8px 16px;font-size:13px;white-space:nowrap;border:2px solid #e2e8f0;transition:all .2s}.filter-bar button:active{transform:scale(.95)}@media(max-width:768px){.filter-bar{gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -12px 1rem;padding:0 12px 4px}.filter-bar::-webkit-scrollbar{height:4px}.filter-bar::-webkit-scrollbar-track{background:transparent}.filter-bar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:2px}.filter-bar button{padding:10px 14px;font-size:12px;min-height:40px;flex-shrink:0}}@media(max-width:480px){.filter-bar button{font-size:11px;padding:8px 12px}}.signal-type-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.signal-type-badge.analog{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.signal-type-badge.digital{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff}.signal-type-badge.power{background:linear-gradient(135deg,#ffa726,#fb8c00);color:#fff}.loop-manage-modal{max-height:90vh;overflow-y:auto}.element-section{background:#f9fafb;padding:16px;border-radius:8px;border:1px solid #e5e7eb}.element-section h3{margin:0 0 12px;font-size:16px;font-weight:600;color:#1f2937}.element-section select{width:100%;padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;background:#fff;cursor:pointer;transition:border-color .2s}.element-section select:hover{border-color:#9ca3af}.element-section select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.loading-state{display:flex;align-items:center;justify-content:center;padding:40px;color:#6b7280;font-size:14px}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;max-width:900px;width:90%;max-height:90vh;display:flex;flex-direction:column}.modal-header{padding:20px 24px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between}.modal-header h2{margin:0;font-size:20px;font-weight:600;color:#1f2937}.modal-body{padding:24px;overflow-y:auto;flex:1}.modal-footer{padding:16px 24px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:12px}.btn-close{background:none;border:none;font-size:24px;color:#6b7280;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s}.btn-close:hover{background:#f3f4f6;color:#1f2937}.btn-primary{background:#3b82f6;color:#fff;border:none;padding:10px 20px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-primary:hover{background:#2563eb}.btn-primary:disabled{background:#9ca3af;cursor:not-allowed}.form-card{background:#fff;border-radius:10px;padding:16px 20px;margin-bottom:20px;box-shadow:0 2px 6px #00000014}.form-card h3{margin:0 0 16px;color:#1a202c;font-size:16px;font-weight:700}.form-group{margin-bottom:12px}.form-group label{display:block;margin-bottom:5px;color:#4a5568;font-weight:600;font-size:13px}.form-group input,.form-group textarea,.form-group select{width:100%;padding:8px 12px;border:2px solid #e2e8f0;border-radius:6px;font-size:13px;transition:all .3s;font-family:inherit}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group textarea{resize:vertical;min-height:70px}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:8px 20px;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .3s}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 10px #667eea66}.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-secondary{background:#fff;color:#4a5568;padding:8px 20px;border:2px solid #e2e8f0;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .3s}.btn-secondary:hover{border-color:#cbd5e0;background:#f7fafc}.table-container{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 6px #00000014}.data-table{width:100%;border-collapse:collapse}.data-table thead{background:linear-gradient(135deg,#667eea,#764ba2)}.data-table thead th{padding:12px 14px;text-align:left;color:#fff;font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.data-table tbody tr{border-bottom:1px solid #e2e8f0;transition:background .2s}.data-table tbody tr:hover{background:#f7fafc}.data-table tbody tr:last-child{border-bottom:none}.data-table tbody td{padding:12px 14px;color:#4a5568;font-size:13px}.data-table tbody td:nth-child(2){white-space:nowrap}.data-table tbody td.font-semibold{font-weight:600;color:#1a202c}.data-table tbody td.empty-state{text-align:center;padding:36px 14px;color:#a0aec0;font-style:italic}.action-buttons{display:flex;gap:6px;flex-wrap:wrap}.btn-icon{background:none;border:none;cursor:pointer;font-size:16px;padding:5px;border-radius:5px;transition:all .2s;min-width:32px;min-height:32px;display:inline-flex;align-items:center;justify-content:center}.btn-icon:hover{background:#edf2f7;transform:scale(1.1)}.btn-edit:hover{background:#bee3f8}.btn-delete:hover{background:#fed7d7}.loading-state{text-align:center;padding:36px;color:#a0aec0;font-size:14px}.filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:1rem}.filter-bar button{padding:8px 16px;font-size:13px;white-space:nowrap}.mobile-card-view{display:none}.mobile-card{background:#fff;border-radius:10px;padding:16px;margin-bottom:12px;box-shadow:0 2px 6px #00000014;border-left:4px solid #667eea}.mobile-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px;padding-bottom:12px;border-bottom:2px solid #e2e8f0}.mobile-card-title{font-size:16px;font-weight:700;color:#1a202c;display:flex;align-items:center;gap:8px;flex:1}.mobile-card-id{background:#f3f4f6;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:600;color:#6b7280}.mobile-card-body{display:grid;gap:8px;margin-bottom:12px}.mobile-card-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:13px}.mobile-card-label{font-weight:600;color:#4a5568;margin-right:8px}.mobile-card-value{color:#1a202c;text-align:right;flex:1;word-break:break-word}.mobile-card-actions{display:flex;gap:8px;padding-top:12px;border-top:2px solid #e2e8f0}.mobile-card-actions .btn-icon{flex:1;min-height:44px;font-size:18px;border-radius:8px;border:2px solid #e2e8f0}@media(max-width:768px){.page-container{padding:12px}.page-header{flex-direction:column;align-items:stretch;gap:12px}.page-header button{width:100%}.page-title{font-size:20px}.page-subtitle{font-size:12px}.form-card{padding:16px;border-radius:8px}.form-card h3{font-size:18px}.form-row{grid-template-columns:1fr;gap:12px}.form-group input,.form-group textarea,.form-group select{font-size:16px;padding:12px}.form-actions{flex-direction:column;gap:8px}.form-actions button{width:100%;padding:12px 20px;font-size:15px}.filter-bar{gap:6px}.filter-bar button{padding:10px 14px;font-size:12px}.table-container{display:none}.mobile-card-view{display:block}.info-card,.empty-state-card{padding:16px;font-size:13px}.empty-state-card .empty-icon{font-size:40px}.btn-primary,.btn-secondary{padding:12px 20px;font-size:14px;min-height:44px}.btn-icon{min-width:44px;min-height:44px;font-size:18px;padding:8px}}@media(min-width:769px)and (max-width:1024px){.table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}.data-table{min-width:800px}.data-table thead th,.data-table tbody td{padding:10px 12px;font-size:12px}.action-buttons{gap:4px}.btn-icon{min-width:36px;min-height:36px;font-size:14px}}@media(min-width:1025px){.data-table thead th,.data-table tbody td{padding:14px 16px}}.form-section{margin-bottom:32px;padding-bottom:24px;border-bottom:2px solid #e2e8f0}.form-section:last-of-type{border-bottom:none}.form-section-title{font-size:18px;font-weight:700;color:#1e293b;margin:0 0 20px;display:flex;align-items:center;gap:8px}.component-selection-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;max-height:300px;overflow-y:auto;padding:16px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:10px;border:2px solid #e2e8f0}.component-checkbox{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#fff;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s;-webkit-user-select:none;user-select:none}.component-checkbox:hover{border-color:#3b82f6;box-shadow:0 2px 8px #3b82f61a;transform:translateY(-1px)}.component-checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#3b82f6}.component-checkbox input[type=checkbox]:checked~.component-name{font-weight:600;color:#1e293b}.component-name{flex:1;font-size:14px;font-weight:500;color:#475569}.component-type{font-size:12px;color:#94a3b8;font-weight:400}.btn-elements{background:#10b9811a;color:#10b981}.btn-elements:hover{background:#10b98133;transform:scale(1.1)}.loop-elements-modal{max-width:90vw;max-height:90vh;width:1000px;overflow-y:auto}.loop-elements-modal .modal-body{padding:0}.loop-info-bar{display:flex;gap:20px;padding:15px 20px;background:#f8f9fa;border-bottom:1px solid #e9ecef;font-size:14px}.loop-info-bar span{font-size:14px;color:#475569}.loop-info-bar strong{color:#1e293b;margin-right:4px}.elements-section{padding:20px;border-bottom:1px solid #e9ecef}.elements-section:last-child{border-bottom:none}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-header h3{margin:0;color:#333;font-size:16px}.add-element-form{background:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;padding:15px;margin-bottom:15px}.add-element-form .form-group{display:flex;flex-direction:column;gap:6px}.add-element-form label{display:block;font-size:14px;font-weight:600;color:#1e3a8a}.add-element-form input,.add-element-form select,.add-element-form textarea{width:100%;padding:10px 14px;font-size:14px;border:2px solid #93c5fd;border-radius:8px;transition:all .3s;font-family:inherit;background:#fff}.add-element-form input:focus,.add-element-form select:focus,.add-element-form textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.add-element-form .form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:16px}.add-element-form .form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.elements-list{display:flex;flex-direction:column;gap:10px}.element-item{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;background:#fff;border:1px solid #e9ecef;border-radius:6px;transition:all .2s ease}.element-item:hover{border-color:#007bff;box-shadow:0 2px 4px #007bff1a}.element-info{display:flex;flex-direction:column;gap:4px;flex:1}.element-name{font-weight:600;color:#333}.element-role,.element-sequence,.element-notes{font-size:12px;color:#666}.element-sequence{font-weight:500;color:#007bff}.empty-state-small{text-align:center;padding:20px;color:#666;font-style:italic}.visualization-section{margin:20px 0;border:1px solid #e2e8f0;border-radius:8px;background:#fff;overflow:hidden}.visualization-section .visualization-header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;background:#f8f9fa;border-bottom:1px solid #e2e8f0}.visualization-section .visualization-header h4{margin:0;color:#1a202c;font-size:16px;font-weight:600}.view-mode-toggle{display:flex;gap:8px;align-items:center}.view-mode-toggle .btn-sm{padding:6px 12px;font-size:12px;border-radius:4px;border:none;cursor:pointer;font-weight:600;transition:all .2s ease}.view-mode-toggle .btn-primary{background:#3b82f6;color:#fff}.view-mode-toggle .btn-primary:hover{background:#2563eb}.view-mode-toggle .btn-secondary{background:#6b7280;color:#fff}.view-mode-toggle .btn-secondary:hover{background:#4b5563}@media(max-width:768px){.loop-elements-modal{width:95vw;max-width:none}.loop-info-bar{flex-direction:column;gap:10px}.section-header{flex-direction:column;gap:10px;align-items:stretch}.add-element-form .form-row{grid-template-columns:1fr}.element-item{flex-direction:column;align-items:stretch;gap:10px}.element-info{gap:8px}.visualization-section .visualization-header{flex-direction:column;gap:10px;align-items:stretch}.view-mode-toggle{justify-content:center}}
