:root{
  --bg:#f5f7fb;--card:#fff;--text:#0f172a;--muted:#64748b;--line:#e2e8f0;
  --blue:#2563eb;--blue2:#1d4ed8;--soft:#eff6ff;--green:#16a34a;--red:#dc2626;--yellow:#ca8a04;--orange:#f97316;
  --shadow:0 16px 45px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.hidden{display:none!important}
.topbar{height:74px;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.nav{max-width:1240px;margin:0 auto;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.brand{display:flex;align-items:center;gap:12px;font-weight:900}
.logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#0f172a);color:#fff;display:grid;place-items:center;box-shadow:0 12px 28px rgba(37,99,235,.25)}
.brand small{display:block;color:var(--muted);font-weight:650;margin-top:2px}
.navlinks{display:flex;align-items:center;gap:8px}
.navlinks a{padding:10px 12px;border-radius:11px;color:#475569;font-weight:750}
.navlinks a:hover{background:#f1f5f9;color:#0f172a}
.btn{border:0;border-radius:13px;padding:12px 16px;font-weight:850;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.small{padding:10px 14px}
.btn.primary{background:var(--blue);color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.22)}
.btn.primary:hover{background:var(--blue2)}
.btn.light{background:#fff;border:1px solid var(--line);color:#0f172a}
.btn.light:hover{background:#f8fafc}
.wrap{max-width:1240px;margin:0 auto;padding:0 22px}
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center;padding-top:68px}
.badge{display:inline-flex;align-items:center;gap:8px;background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe;padding:9px 14px;border-radius:999px;font-weight:850;font-size:13px}
.dot{width:8px;height:8px;background:var(--green);border-radius:50%;box-shadow:0 0 0 5px rgba(22,163,74,.12)}
h1{font-size:58px;line-height:1.02;letter-spacing:-.055em;margin:18px 0 16px}
.lead{font-size:18px;line-height:1.75;color:var(--muted)}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.cover{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}
.cover-top{height:52px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:#64748b}
.cover-top b{color:var(--green)}
.cover-canvas{height:410px;position:relative;background:linear-gradient(#edf2f7 1px,transparent 1px),linear-gradient(90deg,#edf2f7 1px,transparent 1px);background-size:22px 22px}
.cover-node{position:absolute;background:#fff;border:1px solid #dbe2ea;border-radius:16px;padding:14px;min-width:145px;box-shadow:0 12px 28px rgba(15,23,42,.08)}
.cover-node b{display:block;margin-bottom:6px}
.cover-node small{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}
.cover-node i{display:inline-block;width:11px;height:11px;background:var(--green);border-radius:50%;box-shadow:0 0 0 4px rgba(22,163,74,.12);margin-right:6px}
.cover-line{position:absolute;height:4px;border-radius:20px;transform-origin:left center;opacity:.8}
.cover-line.eth{background:var(--blue)}
.cover-line.fiber{background:var(--orange)}
.n1{left:26px;top:46px}.n2{left:240px;top:46px}.n3{left:455px;top:46px}.n4{left:545px;top:250px}.n5{left:760px;top:250px}
.l1{left:170px;top:94px;width:75px}.l2{left:385px;top:94px;width:78px}.l3{left:545px;top:130px;width:125px;transform:rotate(78deg)}.l4{left:690px;top:300px;width:78px}
.section{padding:42px 0}
.section h2{font-size:34px;letter-spacing:-.03em;margin:0 0 20px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card,.panel,.side,.prop-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.card{padding:22px}
.icon{width:44px;height:44px;border-radius:14px;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;font-weight:900;margin-bottom:14px}
.card h3{margin:0 0 8px}
.card p{margin:0;color:var(--muted);line-height:1.65}
.band{background:#0f172a;color:#fff;border-radius:24px;padding:28px;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
.band h2{margin:0 0 8px}.band p{color:#cbd5e1;margin:0;line-height:1.65}
.appPage{max-width:1240px;margin:0 auto;padding:28px 22px}
.app-layout{display:grid;grid-template-columns:270px 1fr;gap:18px}
.side{padding:16px;height:fit-content}
.side h3{margin:8px 10px 14px}
.side a{display:flex;justify-content:space-between;padding:12px;border-radius:13px;color:#64748b;font-weight:750}
.side a.active,.side a:hover{background:#eff6ff;color:#1d4ed8}
.panel{padding:26px}
.panel-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:18px}
.panel-head h2{font-size:30px;letter-spacing:-.04em;margin:0}
.panel-head p{margin:8px 0 0;color:#64748b}
.notice{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:16px;padding:16px;margin-bottom:18px;line-height:1.6}
.create-box{border:1px solid var(--line);border-radius:18px;padding:18px;margin-bottom:18px}
label{display:block;font-size:13px;font-weight:850;color:#334155;margin-bottom:7px}
input,select{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:13px;outline:none;background:#fff}
input:focus,select:focus{border-color:#93c5fd;box-shadow:0 0 0 4px #dbeafe}
.row-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.project-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.project{border:1px solid var(--line);border-radius:18px;background:#fff;padding:18px}
.status{display:inline-flex;background:#dcfce7;color:#166534;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}
.project h3{margin:14px 0 8px}
.project p{color:var(--muted);font-size:14px;line-height:1.55;margin:0 0 14px}
.labPage{height:calc(100vh - 74px);display:grid;grid-template-columns:270px 1fr 320px;background:#f8fafc}
.palette{background:#fff;border-right:1px solid var(--line);padding:14px;overflow:auto}
.palette h3{margin:8px 8px 12px}
.palette .mt{margin-top:20px}
.tool{border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px;margin-bottom:10px;cursor:pointer}
.tool:hover{background:#eff6ff;border-color:#bfdbfe}
.tool b{display:block}.tool small{color:#64748b}.tool.cable.active{border-color:#2563eb;background:#eff6ff}
.hint{font-size:13px;color:#64748b;line-height:1.6;margin:16px 8px}
.lab-main{display:flex;flex-direction:column;min-width:0}
.lab-toolbar{height:60px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 14px;gap:12px}
.lab-title strong{display:block}.lab-title small{color:#64748b}.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.viewport{position:relative;flex:1;overflow:hidden;background:linear-gradient(#e8edf5 1px,transparent 1px),linear-gradient(90deg,#e8edf5 1px,transparent 1px);background-size:20px 20px;cursor:default}
.viewport.panning{cursor:grabbing}
.board{position:absolute;left:0;top:0;width:4000px;height:2600px;transform-origin:0 0}
.link-svg{position:absolute;left:0;top:0;width:4000px;height:2600px;overflow:visible;pointer-events:none}
.svg-link{stroke-width:4;stroke-linecap:round;pointer-events:stroke}
.svg-link.ethernet{stroke:#2563eb}.svg-link.fiber{stroke:#f97316}.svg-link.cut{stroke:#dc2626;stroke-dasharray:8 6}
.svg-link.flow{stroke-dasharray:12 10;animation:dash 1s linear infinite}
@keyframes dash{to{stroke-dashoffset:-44}}
.node{position:absolute;width:220px;background:#fff;border:1px solid #dbe2ea;border-radius:16px;box-shadow:0 12px 28px rgba(15,23,42,.10);user-select:none;overflow:hidden}
.node.selected{outline:3px solid rgba(37,99,235,.25);border-color:#93c5fd}
.node-head{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #edf2f7;cursor:move}
.node-icon{width:34px;height:34px;border-radius:12px;background:#eff6ff;color:#1d4ed8;display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.node-title{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.node-sub{font-size:12px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.node-body{padding:10px 12px}
.port-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;border:1px solid #eef2f7;border-radius:10px;padding:6px 8px;margin:5px 0;background:#fbfdff}
.port-dot{width:12px;height:12px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.12);cursor:crosshair;flex:0 0 auto}
.port-dot.green{background:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.12)}
.port-dot.yellow{background:#ca8a04;box-shadow:0 0 0 4px rgba(202,138,4,.12)}
.port-dot.red{background:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.12)}
.port-row.pending{background:#eff6ff;border-color:#93c5fd}
.properties{background:#fff;border-left:1px solid var(--line);padding:14px;overflow:auto}
.prop-card{padding:14px;margin-bottom:12px;box-shadow:none}
.prop-card h3{margin:0 0 12px}
.kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed #e5e7eb;font-size:13px}
.kv:last-child{border-bottom:0}
.muted{color:#64748b}.ok{color:#16a34a;font-weight:900}.warn{color:#ca8a04;font-weight:900}.bad{color:#dc2626;font-weight:900}
.events{font-size:13px;color:#64748b;line-height:1.55;max-height:250px;overflow:auto}
.context-menu{position:fixed;z-index:9999;min-width:230px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:8px}
.context-menu button{display:block;width:100%;text-align:left;background:#fff;border:0;border-radius:10px;padding:10px;cursor:pointer}
.context-menu button:hover{background:#eff6ff}
.modal{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:10000;display:grid;place-items:center;padding:20px}
.modal-box{width:min(760px,96vw);background:#fff;border-radius:22px;box-shadow:0 28px 80px rgba(15,23,42,.25);overflow:hidden}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}
.modal-head h3{margin:0}.modal-head button{border:0;background:#f1f5f9;border-radius:10px;width:34px;height:34px;cursor:pointer;font-size:22px}
.modal-body{padding:20px 22px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.modal-body h4{margin:18px 0 12px}
.cli-box{width:min(860px,96vw)}
.cli-output{background:#0f172a;color:#d1fae5;font-family:Consolas,monospace;min-height:280px;padding:18px;white-space:pre-wrap}
.cli-input-row{display:flex;gap:10px;padding:14px;border-top:1px solid var(--line)}
@media(max-width:980px){
  .hero,.cards,.project-list,.app-layout,.labPage{grid-template-columns:1fr}
  .palette,.properties{display:none}
  h1{font-size:40px}
  .navlinks a:not(.btn){display:none}
}

/* PL_STEP4A_COMPACT_DEVICE_OVERRIDE_START */
.node{
  width:220px;
  min-height:74px;
}
.node.node-olt{
  width:360px;
  min-height:96px;
}
.node.node-switch{
  width:300px;
  min-height:88px;
}
.node.node-mikrotik,
.node.node-onu,
.node.node-wifi,
.node.node-splitter{
  width:210px;
  min-height:84px;
}
.node-head{
  padding:9px 12px;
}
.node-icon{
  width:30px;
  height:30px;
  border-radius:10px;
  font-size:12px;
}
.node-title{
  font-size:14px;
}
.node-sub{
  font-size:10px;
}
.node-body{
  padding:8px 12px 12px;
}
.device-front{
  border:1px solid #edf2f7;
  border-radius:12px;
  background:linear-gradient(180deg,#f8fafc,#ffffff);
  padding:8px;
}
.compact-port-grid{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.port-mini{
  width:13px;
  height:13px;
  border-radius:4px;
  background:#94a3b8;
  border:1px solid rgba(15,23,42,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 0 0 3px rgba(148,163,184,.10);
  cursor:crosshair;
  display:inline-block;
}
.port-mini.green{
  background:#16a34a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 0 0 3px rgba(22,163,74,.12);
}
.port-mini.yellow{
  background:#ca8a04;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 0 0 3px rgba(202,138,4,.12);
}
.port-mini.red{
  background:#dc2626;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 0 0 3px rgba(220,38,38,.12);
}
.port-mini.pending{
  outline:3px solid rgba(37,99,235,.35);
}
.port-mini[data-role="pon"],
.port-mini[data-type="pon"],
.port-mini[data-type="optical"],
.port-mini[data-type="fiber"]{
  border-radius:50%;
}
.front-label{
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:10px;
  color:#64748b;
  margin-bottom:7px;
}
.front-label b{
  color:#334155;
}
.group-divider{
  width:1px;
  height:14px;
  background:#e2e8f0;
  margin:0 2px;
}
.node.node-olt .device-front{
  background:linear-gradient(180deg,#f1f5f9,#ffffff);
}
.node.node-olt .compact-port-grid{
  max-width:324px;
}
.node.node-splitter .compact-port-grid{
  justify-content:center;
}
.cli-output{
  font-size:13px;
  line-height:1.45;
}
.svg-link{
  pointer-events:stroke;
}
/* PL_STEP4A_COMPACT_DEVICE_OVERRIDE_END */

/* PL_STEP4B_POWER_PLUG_MODULE_START */
.node-top-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 10px 0;
  font-size:11px;
  color:#64748b;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:4px 8px;
  font-weight:900;
  font-size:10px;
}
.status-pill.off{background:#f1f5f9;color:#64748b}
.status-pill.on{background:#dcfce7;color:#166534}
.status-pill::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
}
.node-actions{
  position:absolute;
  left:50%;
  top:-35px;
  transform:translateX(-50%);
  display:flex;
  gap:5px;
  opacity:0;
  pointer-events:none;
  transition:.12s ease;
  z-index:20;
}
.node:hover .node-actions,
.node.selected .node-actions{
  opacity:1;
  pointer-events:auto;
}
.node-actions button{
  width:29px;
  height:29px;
  border:0;
  border-radius:8px;
  background:#0f172a;
  color:#fff;
  cursor:pointer;
  font-size:13px;
  display:grid;
  place-items:center;
  box-shadow:0 8px 18px rgba(15,23,42,.22);
}
.node-actions button:hover{background:#2563eb}
.node-actions button.cli-only{background:#1d4ed8}
.node-actions button.disabled{
  background:#94a3b8;
  cursor:not-allowed;
}
.port-mini.module-missing{
  border:2px solid #cbd5e1;
  background:#e2e8f0;
}
.port-mini.module-inserted{
  border:2px solid #2563eb;
}
.port-mini.admin-down{
  background:#dc2626;
}
.module-tool{
  border-color:#bfdbfe!important;
  background:#eff6ff!important;
}
.connection-box{
  width:min(760px,96vw);
}
.connection-visual{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:18px;
  align-items:center;
  margin-bottom:16px;
  padding:14px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc;
}
.connection-device{
  text-align:center;
}
.connection-icon{
  width:54px;
  height:38px;
  margin:0 auto 8px;
  border-radius:12px;
  background:#0f172a;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
}
.connection-line{
  width:120px;
  height:4px;
  border-radius:99px;
  background:#64748b;
}
.connection-line.fiber{background:#f97316}
.connection-line.ethernet{background:#2563eb}
.cli-input-row button{
  display:none!important;
}
.cli-input-row input{
  font-family:Consolas,monospace;
}
.cli-output{
  height:360px;
  overflow:auto;
}
.putty-cursor{
  display:inline-block;
  width:8px;
  height:14px;
  background:#d1fae5;
  vertical-align:-2px;
  animation:blink 1s steps(1) infinite;
}
@keyframes blink{50%{opacity:0}}
/* PL_STEP4B_POWER_PLUG_MODULE_END */

/* PL_STEP4C_PORT_PENCIL_CABLE_START */
.port-mini{
  position:relative;
  transition:.12s ease;
}
.port-mini:hover{
  transform:scale(1.35);
  z-index:30;
}
.port-mini:hover::after{
  content:"✎";
  position:absolute;
  right:-18px;
  top:-20px;
  width:22px;
  height:22px;
  border-radius:8px;
  background:#0f172a;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  box-shadow:0 8px 18px rgba(15,23,42,.25);
  pointer-events:none;
}
.port-mini.module-missing:hover::after{
  content:"⚠";
  background:#64748b;
}
.svg-link{
  fill:none;
  pointer-events:stroke;
}
.svg-link.fiber{
  stroke:#f97316;
}
.svg-link.ethernet{
  stroke:#2563eb;
}
.svg-link.preview{
  stroke-dasharray:8 8;
  opacity:.9;
  pointer-events:none;
}
.svg-link.warning{
  stroke:#ca8a04;
}
.link-label{
  font-size:12px;
  font-weight:800;
  fill:#334155;
  paint-order:stroke;
  stroke:#ffffff;
  stroke-width:4px;
  stroke-linejoin:round;
}
.link-label.fiber{
  fill:#c2410c;
}
.link-label.ethernet{
  fill:#1d4ed8;
}
.port-mini.cable-source{
  outline:4px solid rgba(37,99,235,.35);
}
.canvas-drawing-cable{
  cursor:crosshair!important;
}
/* PL_STEP4C_PORT_PENCIL_CABLE_END */

/* PL_STEP4D_BEND_SFP_FLOW_START */
.bend-dot{
  fill:#f97316;
  stroke:#fff;
  stroke-width:3;
  cursor:move;
  pointer-events:all;
  filter:drop-shadow(0 4px 8px rgba(15,23,42,.25));
}
.bend-dot:hover{
  fill:#dc2626;
}
.bend-dot-label{
  font-size:11px;
  font-weight:900;
  fill:#c2410c;
  paint-order:stroke;
  stroke:#fff;
  stroke-width:4px;
  stroke-linejoin:round;
  pointer-events:none;
}
.svg-link.flow{
  stroke-dasharray:14 12;
  animation:dash 650ms linear infinite;
  stroke-width:6;
  filter:drop-shadow(0 0 6px rgba(37,99,235,.35));
}
.svg-link.fiber.flow{
  filter:drop-shadow(0 0 6px rgba(249,115,22,.40));
}
.packet-dot{
  fill:#fff;
  stroke:#16a34a;
  stroke-width:4;
  filter:drop-shadow(0 0 8px rgba(22,163,74,.65));
}
.link-label.invalid{
  fill:#dc2626;
}
/* PL_STEP4D_BEND_SFP_FLOW_END */

/* PL_STEP4E_VLAN_FLOW_SCROLL_START */
.viewport{
  overflow:scroll!important;
}
.board{
  position:relative!important;
  min-width:4200px;
  min-height:2800px;
}
.viewport::-webkit-scrollbar{
  width:14px;
  height:14px;
}
.viewport::-webkit-scrollbar-track{
  background:#eef2f7;
}
.viewport::-webkit-scrollbar-thumb{
  background:#94a3b8;
  border-radius:999px;
  border:3px solid #eef2f7;
}
.viewport::-webkit-scrollbar-thumb:hover{
  background:#64748b;
}
.svg-link.flow-error{
  stroke:#dc2626!important;
  stroke-dasharray:10 8;
  animation:dash 550ms linear infinite;
  stroke-width:6;
  filter:drop-shadow(0 0 8px rgba(220,38,38,.50));
}
.svg-link.flow-return{
  stroke:#ca8a04!important;
  stroke-dasharray:4 10;
  animation:dash 600ms linear infinite;
  stroke-width:6;
  filter:drop-shadow(0 0 8px rgba(202,138,4,.45));
}
.flow-status-box{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:12px;
  margin-top:10px;
  font-size:13px;
  line-height:1.55;
}
.flow-ok{color:#16a34a;font-weight:900}
.flow-fail{color:#dc2626;font-weight:900}
.flow-warn{color:#ca8a04;font-weight:900}
.node.node-mikrotik{
  width:260px!important;
}
.node.node-mikrotik .compact-port-grid{
  max-width:225px;
}
.link-label{
  font-size:11px!important;
}
.vlan-chip{
  display:inline-flex;
  padding:3px 7px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:11px;
  font-weight:900;
  margin:2px;
}
/* PL_STEP4E_VLAN_FLOW_SCROLL_END */

/* PL_STEP4F_SCROLL_MIKROTIK_VLAN_START */
html, body{
  height:100%;
}
body.lab-mode{
  overflow:hidden!important;
}
body.lab-mode .topbar{
  position:relative!important;
  top:auto!important;
}
body.lab-mode .labPage{
  height:calc(100vh - 74px)!important;
  max-height:calc(100vh - 74px)!important;
  overflow:hidden!important;
}
body.lab-mode .palette,
body.lab-mode .properties{
  height:calc(100vh - 74px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
body.lab-mode .lab-main{
  min-height:0!important;
  overflow:hidden!important;
}
body.lab-mode .viewport{
  height:100%!important;
  overflow:auto!important;
  overscroll-behavior:contain;
}
body.lab-mode .board{
  width:4200px!important;
  height:2800px!important;
  min-width:4200px!important;
  min-height:2800px!important;
}
.palette .modules-top-title{
  margin-top:14px!important;
  padding-top:12px;
  border-top:1px solid #e2e8f0;
}
.vlan-table-wrap{
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
  margin-top:14px;
}
.vlan-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.vlan-table th,
.vlan-table td{
  padding:10px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
}
.vlan-table th{
  background:#f8fafc;
  color:#334155;
}
.vlan-table tr:last-child td{
  border-bottom:0;
}
.vlan-mini{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:999px;
  padding:4px 8px;
  margin:2px;
  font-size:11px;
  font-weight:900;
}
.vlan-danger{
  background:#fee2e2!important;
  color:#991b1b!important;
}
.vlan-note{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:10px;
  color:#64748b;
  font-size:13px;
  line-height:1.55;
  margin-top:12px;
}
/* PL_STEP4F_SCROLL_MIKROTIK_VLAN_END */

/* PL_STEP5A_VSOL_CLI_START */
.cli-box{
  width:min(980px,96vw)!important;
}
.cli-output{
  height:430px!important;
  background:#0b1222!important;
  color:#d1fae5!important;
  font-family:Consolas,Menlo,monospace!important;
  font-size:13px!important;
  line-height:1.45!important;
  overflow:auto!important;
  padding:18px!important;
  white-space:pre-wrap!important;
  border-bottom:1px solid #1e293b!important;
}
.cli-input-row{
  background:#0b1222!important;
  border-top:0!important;
  display:flex!important;
  align-items:center!important;
  gap:0!important;
  padding:0 18px 16px!important;
}
#cliPromptText{
  color:#d1fae5;
  font-family:Consolas,Menlo,monospace;
  font-size:13px;
  white-space:pre;
}
#cliInput{
  background:#0b1222!important;
  color:#d1fae5!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  font-family:Consolas,Menlo,monospace!important;
  font-size:13px!important;
}
#cliInput:focus{
  border:0!important;
  box-shadow:none!important;
}
.cli-input-row button{
  display:none!important;
}
.cli-help-title{
  color:#93c5fd;
}
/* PL_STEP5A_VSOL_CLI_END */

/* PL_STEP5E_TERMINAL_PON_MAC_STP_START */
.terminal-dock{
  position:fixed;
  left:270px;
  right:300px;
  bottom:10px;
  min-height:44px;
  background:rgba(15,23,42,.94);
  border:1px solid rgba(148,163,184,.35);
  border-radius:16px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  z-index:9998;
  box-shadow:0 16px 40px rgba(15,23,42,.28);
}
.terminal-dock-title{
  color:#cbd5e1;
  font-size:12px;
  font-weight:900;
  margin-right:4px;
}
.terminal-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  flex:1;
}
.terminal-tab{
  border:1px solid rgba(148,163,184,.35);
  background:#0f172a;
  color:#e2e8f0;
  border-radius:12px;
  padding:8px 12px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.terminal-tab.active{
  background:#2563eb;
  color:#fff;
  border-color:#60a5fa;
}
.terminal-tab small{
  display:block;
  color:#93c5fd;
  font-size:10px;
  font-weight:700;
}
.cli-window-minimized{
  display:none!important;
}
.cli-window-open{
  display:flex!important;
}
.cli-head-actions{
  display:flex;
  gap:8px;
  align-items:center;
}
.cli-head-actions button{
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
  background:#f1f5f9;
  color:#0f172a;
  font-weight:900;
  cursor:pointer;
}
.port-mini.force-down{
  background:#94a3b8!important;
  border-color:#cbd5e1!important;
}
.mac-mini{
  font-family:Consolas,monospace;
  font-size:11px;
  color:#475569;
}
/* PL_STEP5E_TERMINAL_PON_MAC_STP_END */

/* PL_STEP5F_TERMINAL_WINDOW_FIX_START */
#cliModal{
  background:transparent!important;
  pointer-events:none!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  z-index:10050!important;
}
#cliModal.hidden{
  display:none!important;
  pointer-events:none!important;
}
#cliModal .modal-box,
#cliModal .cli-box{
  pointer-events:auto!important;
  position:absolute!important;
  left:120px;
  top:110px;
  width:920px!important;
  height:620px!important;
  min-width:560px!important;
  min-height:360px!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  resize:both!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  box-shadow:0 18px 55px rgba(15,23,42,.35)!important;
}
#cliModal .modal-head{
  cursor:move!important;
  user-select:none!important;
  flex:0 0 auto!important;
}
#cliModal .cli-output,
#cliModal #cliOutput{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:180px!important;
}
#cliModal .cli-input-row{
  flex:0 0 auto!important;
}
.cli-head-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.cli-head-actions button,
#cliMinBtn,
#cliCloseBtn{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border:0!important;
  border-radius:10px!important;
  background:#f1f5f9!important;
  color:#0f172a!important;
  font-weight:900!important;
  cursor:pointer!important;
  font-size:16px!important;
}
.cli-head-actions button:hover,
#cliMinBtn:hover,
#cliCloseBtn:hover{
  background:#e2e8f0!important;
}
#terminalDock{
  pointer-events:auto!important;
  z-index:10040!important;
}
/* PL_STEP5F_TERMINAL_WINDOW_FIX_END */
