.aihsl-sketch{font-family:inherit;color:#23113f;background:#faf7ff;border:1px solid #eadcf7;border-radius:22px;overflow:hidden;max-width:1400px;margin:auto;box-shadow:0 12px 30px #32135a12}.aihsl-sketch *{box-sizing:border-box}.aihsl-sketch button,.aihsl-sketch select,.aihsl-sketch input{font:inherit}.aihsl-sketch-head{background:linear-gradient(110deg,#3b116b,#9919e0);padding:24px 28px;color:white;display:flex;align-items:center;justify-content:space-between;gap:12px}.aihsl-sketch-head small{letter-spacing:2px;font-weight:800}.aihsl-sketch-head h2{color:white;font-size:clamp(22px,3vw,32px);margin:5px 0}.aihsl-sketch-head p{margin:0;color:#f4e8ff}.aihsl-sketch-head span{border:1px solid #ffffff77;padding:9px 13px;border-radius:30px;white-space:nowrap}.aihsl-sketch-toolbar,.aihsl-sketch-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:14px;background:white;border-bottom:1px solid #eee1f8}.aihsl-sketch button{border:1px solid #dbc5f1;border-radius:10px;background:#fff;color:#5e1698;padding:9px 13px;cursor:pointer;font-weight:650}.aihsl-sketch button:hover,.aihsl-sketch button.active{background:#7412bf;color:white}.aihsl-sketch select,.aihsl-sketch input{border:1px solid #dac5ee;border-radius:9px;padding:8px;max-width:100%}.aihsl-sketch-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px;padding:14px}.aihsl-sketch-side{background:white;border:1px solid #eadcf7;border-radius:14px;padding:15px}.aihsl-sketch-side p{font-size:12px;color:#6e6080}.aihsl-sketch-devices{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0 20px}.aihsl-sketch-devices button{font-size:12px;padding:10px 5px}.aihsl-sketch-side label{display:block;font-size:13px;font-weight:700}.aihsl-sketch-side input{width:100%;margin:6px 0}.aihsl-sketch-tip{line-height:1.5}.aihsl-sketch-work{border:1px solid #e8d9f6;background:#fff;border-radius:14px;overflow:hidden;min-width:0}.aihsl-sketch-work svg{display:block;width:100%;height:auto;touch-action:none;user-select:none}.aihsl-sketch-node{cursor:grab}.aihsl-sketch-node:active{cursor:grabbing}.aihsl-sketch-bottom{border-top:1px solid #eadcf7;border-bottom:0}.aihsl-sketch-bottom [data-status]{font-size:13px;color:#5e1698}.aihsl-sketch-foot{padding:0 16px 12px;color:#766c80;font-size:12px}@media(max-width:720px){.aihsl-sketch-layout{grid-template-columns:1fr}.aihsl-sketch-devices{grid-template-columns:repeat(4,1fr)}.aihsl-sketch-head span{display:none}.aihsl-sketch-toolbar{gap:6px}.aihsl-sketch-toolbar button{font-size:12px}}

/* v1.0.1 tablet and laptop wide sketch layout */
.aihsl-sketch{max-width:none;width:100%;overflow:visible}
.aihsl-sketch-head{padding:20px 24px}.aihsl-sketch-head h2{font-size:clamp(23px,2.5vw,31px)}
.aihsl-sketch-toolbar{gap:8px}.aihsl-sketch-toolbar-spacer{flex:1}
.aihsl-sketch-layout{grid-template-columns:minmax(170px,215px) minmax(0,1fr);gap:14px;padding:14px}
.aihsl-sketch-work{min-height:500px;display:flex;align-items:stretch}.aihsl-sketch-work svg{height:100%;min-height:500px;aspect-ratio:900/540;object-fit:contain}
.aihsl-sketch.is-fullscreen{position:fixed!important;inset:8px!important;z-index:2147483000!important;width:auto!important;max-width:none!important;overflow:auto!important;background:#faf7ff!important;border-radius:15px!important}
.aihsl-sketch.is-fullscreen .aihsl-sketch-layout{min-height:calc(100dvh - 255px)}
.aihsl-sketch.is-fullscreen .aihsl-sketch-work{min-height:calc(100dvh - 270px)}
.aihsl-sketch.is-fullscreen .aihsl-sketch-work svg{min-height:calc(100dvh - 270px)}
body.aihsl-sketch-fullscreen{overflow:hidden!important}
@media(min-width:1100px){.aihsl-sketch-work,.aihsl-sketch-work svg{min-height:600px}}
@media(min-width:720px) and (max-width:1100px){.aihsl-sketch-layout{grid-template-columns:170px minmax(0,1fr)}.aihsl-sketch-side{padding:10px}.aihsl-sketch-devices{grid-template-columns:1fr 1fr}.aihsl-sketch-work,.aihsl-sketch-work svg{min-height:460px}}
@media(max-width:719px){.aihsl-sketch-layout{grid-template-columns:1fr}.aihsl-sketch-devices{grid-template-columns:repeat(3,minmax(0,1fr))}.aihsl-sketch-work,.aihsl-sketch-work svg{min-height:300px}.aihsl-sketch-toolbar-spacer{display:none}.aihsl-sketch-head{padding:18px}.aihsl-sketch.is-fullscreen .aihsl-sketch-layout{min-height:auto}}

/* v4.8.4 device library */
.aihsl-sketch-side{min-width:0}.aihsl-sketch-library{max-height:440px;overflow:auto;padding-right:3px}.aihsl-sketch-category{border:1px solid #eadcf7;border-radius:10px;margin:9px 0;padding:7px;background:#fcfaff}.aihsl-sketch-category summary{cursor:pointer;font-weight:750;font-size:12px;color:#5e1698}.aihsl-sketch-category .aihsl-sketch-devices{margin:10px 0 2px}.aihsl-sketch-search-label{margin-top:12px}.aihsl-sketch [data-device][hidden]{display:none!important}.aihsl-sketch [data-device] span{display:block;font-size:20px;margin-bottom:3px}.aihsl-sketch-layout{grid-template-columns:minmax(220px,255px) minmax(0,1fr)}@media(max-width:800px){.aihsl-sketch-layout{grid-template-columns:1fr}.aihsl-sketch-library{max-height:220px}.aihsl-sketch-category .aihsl-sketch-devices{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v4.8.5 visible searchable library */
.aihsl-sketch-side .aihsl-sketch-search-label{display:block;margin:12px 0 8px;font-size:13px;font-weight:700}
.aihsl-sketch-side [data-device-search]{display:block;width:100%;margin-top:5px;border:1px solid #d8b4fe;border-radius:9px;padding:9px;background:#fff;color:#32104f}
.aihsl-sketch-side .aihsl-sketch-library{max-height:510px;overflow-y:auto;overscroll-behavior:contain}
.aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.aihsl-sketch-side .aihsl-sketch-category [data-device]{min-width:0;white-space:normal;line-height:1.25;padding:9px 4px}
.aihsl-sketch-side .aihsl-sketch-category summary{padding:5px 3px}
@media(max-width:800px){.aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v4.8.6: accessible, non-clipping responsive icon library */
.aihsl-sketch .aihsl-sketch-layout{grid-template-columns:minmax(300px,340px) minmax(0,1fr);align-items:stretch;gap:16px}
.aihsl-sketch .aihsl-sketch-side{min-width:0;width:100%;padding:18px;overflow:hidden}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-library{width:100%;max-height:560px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain;padding:0 6px 0 0}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category{min-width:0;width:100%;padding:11px;margin:10px 0;border-radius:12px}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category summary{font-size:13px;line-height:1.4;overflow-wrap:anywhere;padding:4px 2px 7px}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:8px 0 2px;min-width:0}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;width:100%;min-height:88px;padding:10px 6px;border-radius:12px;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.3;font-size:12px;text-align:center}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device] span{display:block;flex:none;font-size:27px;line-height:1.15;margin:0}
.aihsl-sketch .aihsl-sketch-side [data-device-search]{min-width:0;width:100%}
@media (min-width:801px) and (max-width:1100px){.aihsl-sketch .aihsl-sketch-layout{grid-template-columns:minmax(270px,300px) minmax(0,1fr)}.aihsl-sketch .aihsl-sketch-side{padding:13px}}
@media (max-width:800px){.aihsl-sketch .aihsl-sketch-layout{grid-template-columns:minmax(0,1fr)}.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-library{max-height:340px}.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:480px){.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{grid-template-columns:repeat(2,minmax(0,1fr))}.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device]{min-height:80px}}

/* v4.8.7 structural fix: stack search above full-width library */
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-device-controls{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;margin:0!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-device-controls>.aihsl-sketch-search-label,.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-device-controls>.aihsl-sketch-library{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:10px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device]{overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important;min-width:0!important;min-height:88px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-library{overflow-x:hidden!important}

/* v4.8.9 Compact Network Designer: scope all overrides to this module */
.aihsl-sketch .aihsl-sketch-layout{grid-template-columns:260px minmax(0,1fr)!important;gap:10px!important;padding:12px!important;align-items:stretch}
.aihsl-sketch .aihsl-sketch-side{width:100%!important;min-width:0!important;padding:11px!important;overflow:hidden!important;border-radius:16px}
.aihsl-sketch .aihsl-sketch-side-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:3px 0 9px}
.aihsl-sketch .aihsl-sketch-side-heading strong{font-size:14px;line-height:1.3}
.aihsl-sketch .aihsl-sketch-side-heading p{margin:3px 0 0;font-size:11px}
.aihsl-sketch .aihsl-sketch-collapse{flex:none;min-width:33px;height:33px;padding:3px 6px!important;border-radius:9px!important;background:#f7efff!important;color:#6810a5!important;font-size:20px!important;line-height:1!important}
.aihsl-sketch .aihsl-sketch-side-body{min-width:0;width:100%}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-search-label{margin:5px 0 8px!important;font-size:12px!important}
.aihsl-sketch .aihsl-sketch-side [data-device-search]{font-size:12px!important;padding:8px!important;margin:5px 0 0!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-library{max-height:460px!important;scrollbar-gutter:auto!important;padding-right:4px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category{padding:7px!important;margin:8px 0!important;border-radius:11px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category summary{font-size:12px!important;padding:4px 2px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:7px 0 1px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device]{min-height:75px!important;padding:7px 4px!important;gap:4px!important;font-size:11px!important;line-height:1.25!important;overflow-wrap:normal!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device] span{font-size:23px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-tip{font-size:11px!important}
.aihsl-sketch .aihsl-sketch-side>label{font-size:12px!important}
.aihsl-sketch .aihsl-sketch-side>button[data-action=rename]{padding:7px 10px!important;font-size:12px!important}
.aihsl-sketch .aihsl-sketch-work{min-width:0!important}
.aihsl-sketch.aihsl-sketch-panel-collapsed .aihsl-sketch-layout{grid-template-columns:54px minmax(0,1fr)!important}
.aihsl-sketch.aihsl-sketch-panel-collapsed .aihsl-sketch-side{padding:8px!important}
.aihsl-sketch.aihsl-sketch-panel-collapsed .aihsl-sketch-side-body,.aihsl-sketch.aihsl-sketch-panel-collapsed .aihsl-sketch-side-heading>div{display:none!important}
.aihsl-sketch.aihsl-sketch-panel-collapsed .aihsl-sketch-side-heading{justify-content:center}
@media(max-width:800px){.aihsl-sketch .aihsl-sketch-layout{grid-template-columns:minmax(0,1fr)!important}.aihsl-sketch.aihsl-sketch-panel-collapsed .aihsl-sketch-layout{grid-template-columns:minmax(0,1fr)!important}.aihsl-sketch.aihsl-sketch-panel-collapsed .aihsl-sketch-side{min-height:48px}.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-library{max-height:240px!important}.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v4.8.10: genuinely compact device palette; canvas remains full size */
@media(min-width:801px){
 .aihsl-sketch .aihsl-sketch-layout{grid-template-columns:235px minmax(0,1fr)!important;gap:10px!important}
}
.aihsl-sketch .aihsl-sketch-side{padding:9px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-library{max-height:405px!important;padding-right:3px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category{padding:6px!important;margin:6px 0!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category summary{font-size:11px!important;line-height:1.3!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category .aihsl-sketch-devices{gap:5px!important;margin:5px 0 0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device]{min-height:58px!important;height:auto!important;padding:5px 3px!important;gap:2px!important;font-size:10px!important;line-height:1.15!important;border-radius:9px!important;overflow-wrap:normal!important;word-break:normal!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device] span{font-size:18px!important;line-height:1.1!important;margin:0!important}
.aihsl-sketch .aihsl-sketch-side [data-device-search]{font-size:11px!important;padding:7px!important}
.aihsl-sketch .aihsl-sketch-side .aihsl-sketch-search-label{font-size:11px!important;margin:4px 0 5px!important}
@media(max-width:800px){
 .aihsl-sketch .aihsl-sketch-side .aihsl-sketch-category [data-device]{min-height:58px!important}
}

/* v4.8.11: two purposeful toolbar rows, scoped to network sketch */
.aihsl-sketch .aihsl-sketch-toolbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:10px 14px!important;background:#fff!important}
.aihsl-sketch .aihsl-sketch-toolbar-row{display:flex!important;align-items:flex-end!important;flex-wrap:wrap!important;gap:9px!important;width:100%!important;min-width:0!important}
.aihsl-sketch .aihsl-sketch-toolbar-primary{padding:2px 0 11px!important}
.aihsl-sketch .aihsl-sketch-toolbar-secondary{border-top:1px solid #f0e7f7;padding:10px 0 2px!important;justify-content:space-between!important;align-items:center!important}
.aihsl-sketch .aihsl-sketch-toolbar-field{display:flex!important;flex-direction:column!important;gap:4px!important;font-size:12px!important;font-weight:600!important;line-height:1.2!important;margin:0!important;min-width:116px!important;flex:0 1 150px!important}
.aihsl-sketch .aihsl-sketch-cable-field{flex-basis:170px!important}
.aihsl-sketch .aihsl-sketch-toolbar-field select{width:100%!important;min-height:39px!important;margin:0!important;padding:7px 10px!important}
.aihsl-sketch .aihsl-sketch-toolbar-row button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:39px!important;padding:8px 12px!important;white-space:nowrap!important;line-height:1.2!important;margin:0!important}
.aihsl-sketch .aihsl-sketch-toolbar-actions,.aihsl-sketch .aihsl-sketch-toolbar-view{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important}
.aihsl-sketch .aihsl-sketch-toolbar-view [data-action="zoomout"],.aihsl-sketch .aihsl-sketch-toolbar-view [data-action="zoomin"]{min-width:38px!important;padding:8px!important}
.aihsl-sketch .aihsl-sketch-toolbar-view [data-action="zoomreset"]{min-width:65px!important}
@media(max-width:700px){.aihsl-sketch .aihsl-sketch-toolbar{padding:10px!important}.aihsl-sketch .aihsl-sketch-toolbar-row{gap:7px!important}.aihsl-sketch .aihsl-sketch-toolbar-field{flex:1 1 125px!important}.aihsl-sketch .aihsl-sketch-toolbar-secondary{align-items:flex-start!important}.aihsl-sketch .aihsl-sketch-toolbar-view{justify-content:flex-start!important}}

/* v4.9.0 AI Network Design Companion */
.aihsl-ai-network-panel{margin:14px 0;padding:17px;border:1px solid #e9d5ff;border-radius:18px;background:linear-gradient(135deg,#faf5ff,#fff);color:#30124e;display:grid;gap:10px}.aihsl-ai-network-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.aihsl-ai-network-title strong{display:block;font-size:16px}.aihsl-ai-network-title small{display:block;color:#6b5681;margin-top:3px}.aihsl-ai-network-title span{font-size:11px;padding:6px 10px;border-radius:99px;background:#ede9fe;color:#6d28d9}.aihsl-ai-network-panel label{font-weight:700;font-size:13px}.aihsl-ai-network-panel textarea{box-sizing:border-box;width:100%;min-height:70px;border:1px solid #d8b4fe;border-radius:12px;padding:11px;font:inherit;background:#fff;color:#26113e;resize:vertical}.aihsl-ai-network-buttons{display:flex;gap:8px;flex-wrap:wrap}.aihsl-ai-network-buttons button{background:#7c3aed!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:10px 14px!important;cursor:pointer!important;font-weight:700}.aihsl-ai-network-buttons button:not(:first-child){background:#fff!important;color:#6d28d9!important;border:1px solid #ddd6fe!important}.aihsl-ai-network-output{padding:12px;border-radius:10px;background:#f5f3ff;color:#49326a;line-height:1.55;font-size:13px;overflow-wrap:anywhere}@media(max-width:640px){.aihsl-ai-network-panel{padding:12px}.aihsl-ai-network-buttons button{flex:1 1 100%}}
