.device-shell{width:100%;aspect-ratio:var(--device-aspect);min-height:140px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:14px;background:repeating-linear-gradient(0deg,transparent 0 18px,rgba(17,24,39,.03) 18px 19px)}.main-frame{fill:url(#metalGradient);stroke:#66696d;stroke-width:2}.main-panel,.module-face{fill:url(#panelGradient);stroke:#171619;stroke-width:1.5}.top-highlight{fill:#ffffff47}.screw{fill:url(#screwGradient);stroke:#4d4948;stroke-width:1}.psu-title{fill:#dbdcdf;font-size:15px;font-weight:700}.psu-text{fill:#d7d8db;font-size:13px;font-weight:600}.tiny-label{fill:#babcc0;font-size:8px;font-weight:700}.group-label{fill:#aeb0b4;font-size:7px;font-weight:700;letter-spacing:.08em}.led{fill:#45464a;stroke:#111;stroke-width:1}.led--active{fill:#3f7655;filter:drop-shadow(0 0 3px rgba(74,161,107,.55))}.led--warn{fill:#b8860b;filter:drop-shadow(0 0 3px rgba(184,134,11,.55))}.led--error{fill:#8b3a3a;filter:drop-shadow(0 0 3px rgba(139,58,58,.55))}.led__shine{fill:#ffffff73}.port-frame{fill:#0c0c0e;stroke:#696b70;stroke-width:1.5}.port-inner{fill:#242428}.rj45-mouth{fill:#070708;stroke:#151518;stroke-width:1}.port-led{fill:#45464a}.port-led--green{fill:#3f7655}.sfp-cage{fill:#6f6d6d;stroke:#b0adaa;stroke-width:1}.sfp-handle{stroke:#b9b6b3;stroke-width:2}.port-number{fill:#aeb0b4;font-size:8px;font-weight:700;pointer-events:none}.component-editable{cursor:move}.component-selected{filter:drop-shadow(0 0 4px #3b82f6) brightness(1.15)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;width:100%;overflow:hidden;background:#090c15}body{font-family:Inter,system-ui,-apple-system,sans-serif;color:#e2e8f0;font-size:13px;-webkit-font-smoothing:antialiased}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#0b0f19}::-webkit-scrollbar-thumb{background:#1e293b;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#334155}.app-layout{display:flex;flex-direction:column;height:100vh}.ide-header{display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#0d131f;border-bottom:1px solid #1e293b;min-height:40px;height:40px;gap:16px;flex-shrink:0;box-shadow:0 4px 20px #00000026;z-index:50}.ide-logo{font-weight:700;font-size:13px;color:#38bdf8;display:flex;align-items:center;gap:8px;margin-right:12px}.ide-logo i{font-size:14px}.menu-dropdown-container{position:relative;display:inline-block}.menu-trigger{background:transparent;border:none;color:#94a3b8;padding:6px 12px;font-size:12px;cursor:pointer;border-radius:4px;transition:all .15s;font-weight:500}.menu-trigger:hover,.menu-trigger.open{background:#1e293b;color:#f8fafc}.menu-dropdown-list{position:absolute;top:100%;left:0;z-index:150;margin-top:4px;background:#0f172a;border:1px solid #334155;border-radius:6px;min-width:170px;box-shadow:0 12px 30px #00000080;padding:4px 0;animation:menuShow .15s ease-out}@keyframes menuShow{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dropdown-item{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;background:none;border:none;color:#cbd5e1;padding:7px 12px;font-size:12px;cursor:pointer;transition:all .15s}.dropdown-item:hover{background:#38bdf81e;color:#38bdf8}.dropdown-item i{width:16px;margin-right:8px;text-align:center}.dropdown-divider{height:1px;background:#334155;margin:4px 0}.menu-shortcut{font-size:10px;color:#64748b;margin-left:12px;font-variant-numeric:tabular-nums}.text-danger{color:#f87171!important}.text-danger:hover{background:#ef444422!important;color:#f87171!important}.tool-btn{background:#1e293b;border:1px solid #334155;color:#94a3b8;padding:5px 10px;border-radius:4px;cursor:pointer;font-size:12px;display:inline-flex;align-items:center;justify-content:center;transition:all .15s}.tool-btn:hover{background:#334155;color:#cbd5e1;border-color:#475569}.tool-btn:disabled{opacity:.35;cursor:not-allowed}.zoom-label{font-size:12px;color:#cbd5e1;font-weight:600;min-width:44px;text-align:center}.active-template-indicator{font-size:12px;font-weight:600;color:#38bdf8;display:flex;align-items:center;gap:6px}.grid-config-indicator{display:flex;align-items:center;gap:6px;font-size:11px;color:#94a3b8}.template-select,.grid-size-select{background:#0f172a;color:#cbd5e1;border:1px solid #334155;border-radius:4px;padding:4px 8px;font-size:12px;cursor:pointer}.template-select:focus,.grid-size-select:focus{outline:none;border-color:#38bdf8}.save-btn{background:#0f766e;color:#f8fafc;border-color:#14b8a6}.save-btn:hover:not(:disabled){background:#0d9488}.analyze-btn{background:#0369a1;color:#f8fafc;border-color:#0284c7}.analyze-btn:hover:not(:disabled){background:#0284c7}.upload-label{display:inline-flex;align-items:center;gap:4px;cursor:pointer}.upload-thumb{width:22px;height:22px;border-radius:3px;object-fit:cover;border:1px solid #38bdf8}.main-area{display:flex;flex:1;overflow:hidden;position:relative}.side-column-left{width:270px;border-right:1px solid #1e293b;display:flex;flex-direction:column;background:#0d131fcc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);flex-shrink:0;z-index:10}.props-panel{width:290px;border-left:1px solid #1e293b;display:flex;flex-direction:column;background:#0d131fcc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);flex-shrink:0;z-index:10;overflow-y:auto}.panel-header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#0a0e17;border-bottom:1px solid #1e293b;font-weight:600;font-size:12px;color:#f8fafc;text-transform:uppercase;letter-spacing:.5px;position:sticky;top:0;z-index:5}.panel-header i{color:#38bdf8}.toolbox-panel{flex-shrink:0;display:flex;flex-direction:column;max-height:55%;border-bottom:1px solid #1e293b}.toolbox-content{overflow-y:auto;flex:1;padding:6px 0}.toolbox-section{border-bottom:1px solid #1e293b55}.toolbox-section:last-child{border-bottom:none}.toolbox-section-hdr{display:flex;align-items:center;justify-content:space-between;width:100%;background:transparent;border:none;color:#cbd5e1;padding:8px 14px;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s}.toolbox-section-hdr:hover{background:#1e293b88;color:#38bdf8}.toolbox-section-hdr span{display:flex;align-items:center;gap:8px}.toolbox-section-hdr i{font-size:10px;color:#64748b}.toolbox-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:4px 10px 10px;background:#090c1533}.toolbox-item{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#111827;border:1px solid #1e293b;border-radius:6px;padding:10px 4px;cursor:pointer;transition:all .15s;color:#94a3b8;text-align:center}.toolbox-item:hover{background:#1f2937;border-color:#38bdf8;color:#f8fafc;box-shadow:0 0 8px #38bdf833;transform:translateY(-1px)}.item-icon{font-size:16px;margin-bottom:4px;color:#38bdf8}.item-title{font-size:10.5px;font-weight:500}.layers-panel{flex:1;display:flex;flex-direction:column;overflow:hidden}.layers-content-scroll{overflow-y:auto;flex:1}.layer-item{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;border-bottom:1px solid #1e293b22;font-size:11px;transition:all .15s;color:#cbd5e1}.layer-item:hover{background:#1e293b55}.layer-item.selected{background:#38bdf811;border-left:3px solid #38bdf8;color:#38bdf8;font-weight:600}.layer-icon{width:14px;text-align:center;font-size:11px;color:#64748b}.layer-item.selected .layer-icon{color:#38bdf8}.layer-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-type{color:#64748b;font-size:9.5px;text-transform:uppercase;margin-left:6px}.layer-toggle{border:none;background:none;color:#475569;cursor:pointer;font-size:12px;transition:color .15s}.layer-toggle:hover{color:#38bdf8}.editor-canvas-container{flex:1;background:#080b11;display:flex;align-items:center;justify-content:center;overflow:auto;position:relative;padding:20px}.props-content{padding:12px;display:flex;flex-direction:column;gap:14px}.props-empty{padding:40px 16px;text-align:center;color:#64748b;font-size:12px;line-height:1.5;font-style:italic}.props-section{border:1px solid #1e293b;border-radius:6px;background:#0f172a55;overflow:hidden}.props-section-hdr{background:#0f172a;padding:6px 10px;font-weight:600;font-size:11px;color:#38bdf8;text-transform:uppercase;border-bottom:1px solid #1e293b;display:flex;align-items:center;gap:6px}.prop-row{padding:8px 10px;display:flex;flex-direction:column;gap:4px}.prop-row:not(:last-child){border-bottom:1px solid #1e293b22}.prop-row label{font-size:10px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;font-weight:600}.prop-row input[type=text],.prop-row input[type=number],.prop-row select{width:100%;background:#0f172a;color:#e2e8f0;border:1px solid #334155;border-radius:4px;padding:5px 8px;font-size:12px;transition:all .15s}.prop-row input:focus,.prop-row select:focus{outline:none;border-color:#38bdf8}.prop-row input[type=color]{width:100%;height:30px;padding:2px;cursor:pointer;background:#0f172a;border:1px solid #334155;border-radius:4px}.prop-row-hdr{display:flex;justify-content:space-between;align-items:center;width:100%}.prop-row-hdr input[type=number]{width:68px;text-align:right;padding:2px 4px}.prop-row input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:4px;background:#334155;border-radius:2px;outline:none;margin:6px 0}.prop-row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:12px;height:12px;border-radius:50%;background:#38bdf8;cursor:pointer;transition:transform .1s}.prop-row input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2)}.statusbar{display:flex;justify-content:space-between;align-items:center;padding:4px 14px;background:#0d131f;border-top:1px solid #1e293b;font-size:11px;color:#94a3b8;flex-shrink:0;min-height:26px;box-shadow:0 -4px 15px #0000001a;z-index:10}.status-id{color:#64748b;font-weight:500}.toast{position:fixed;bottom:45px;left:50%;transform:translate(-50%);background:#14b8a6;color:#fff;padding:8px 24px;border-radius:6px;font-size:12px;font-weight:600;z-index:999;animation:fadeIn .2s cubic-bezier(.16,1,.3,1);box-shadow:0 10px 25px #14b8a64d;border:1px solid #2dd4bf}.toast-err{background:#ef4444;border-color:#f87171;box-shadow:0 10px 25px #ef44444d}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000a6;z-index:200;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-box{background:#0f172a;border:1px solid #334155;border-radius:8px;padding:24px;min-width:360px;box-shadow:0 20px 40px #00000080}.modal-hdr{font-weight:600;font-size:15px;margin-bottom:16px;color:#38bdf8}.modal-inp{width:100%;background:#020617;border:1px solid #334155;border-radius:6px;color:#f8fafc;padding:8px 12px;font-size:13px}.modal-inp:focus{outline:none;border-color:#38bdf8}.modal-acts{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.preset-chip{padding:4px 12px;border-radius:999px;border:1px solid #334155;background:#020617;color:#94a3b8;font-size:11px;cursor:pointer;transition:all .15s}.preset-chip:hover{border-color:#38bdf8;color:#f8fafc}.preset-chip.active{background:#38bdf822;border-color:#38bdf8;color:#38bdf8}@media (max-width: 900px){.side-column-left{width:220px}.props-panel{width:230px}.toolbox-grid{grid-template-columns:1fr}}
